- No
evalor dynamic object modification
Code is strictly compiled; object structures must be static and known at compile time. - Strict mode only (
strict)
Enforced type safety — usage ofanyandunknownis disallowed. - Tuple and array constraints
Only homogeneous arrays and statically indexed tuples are supported. - Partial JS feature support
Features likeFunction.bindwith generics orfor..ofover tuples are not supported.
See also: TypeScript Do's and Don'ts
- No exception passing between C++ and TypeScript
- TypeScript objects are not thread-safe
Do not pass them into other threads. - Pointer-based API and inheritance from
Objectrequired
All exported arguments and return types must be pointers to classes withObjectas the first base class. - Function overloading is not supported for exports
- Stack objects cannot be captured or passed to TS