2 ms·
TypeScript is structurally typed; there's nothing in your example that suggests that Derived1 and Derived2 have different types, instances of each are the same
by barrkel 12y ago
TypeScript is structurally typed; there's nothing in your example that suggests that Derived1 and Derived2 have different types, instances of each are the same type.
- lmm 12y agoPoint, but add a differently-named field to each and it will still compile.