Comment Comment by __ryan__ Runtime type information is against the goals of TypeScript.https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...Edit: Non-goals: … 5. 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. parent __ryan__ 3 years ago
https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
Edit: