4 ms·
Does it support structural typing? That seems to be the strongest advantage of TypeScript.
by pspeter3 12y ago
Does it support structural typing? That seems to be the strongest advantage of TypeScript.
- avik 12y agoYes, it does. You can define object types like { x: number; y: string }, tuple types like [number, string], function types like (x:number) => string, etc.