3 ms·
Type inference is not necessary in general nor does it look like the TypeScript example here uses type inference in any significant way.
by klodolph 9y ago
Type inference is not necessary in general nor does it look like the TypeScript example here uses type inference in any significant way.
- Gehinnn 9y agoThe properties that enable TS' type system to be turing complete are recursive types and indexer types. Indexer types allow you to write `{ foo: string }["foo"]` which results in the type `string`.