Can typescript be used for gaming with webassembly?

If we convert the present 3D typescript libraries to AssemblyScript and load it into electron.js, can we replace the present real game engines like unity and unreal engine with that? I mean I know it can’t be so fast like that but is it possible?

Source: Windows Questions C++