Tuesday, 30 July 2019

reflect typescript class from string



window does work in nodejs, i also tried their codes in typescript playground, none of them work.

namespace solution works , but it only works with export namespace xxx { class}

however, once you have one class exported the namespace, you cannot add another one to this namespace. and export namespace is no more namespace now.

Only below two works:



truly reflect an instance from a string.

No comments:

Post a comment