2 ms·
It's explicitly one of their non-goals[1]: > Add or rely on run-time type information in programs, or emit different code based on the results of the type syst
by eyelidlessness 7y ago
It's explicitly one of their non-goals[1]:
> Add or rely on run-time type information in programs, or emit different code based on the results of the type system. Instead, encourage programming patterns that do not require run-time metadata.
This approach (build runtime behavior that produces static types) is the intended one.
[1] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals#non-goals https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...