3 ms·
TypeScript has used structural typing since the beginning. Classes used to be nominal, but changed to structural (except for classes with private fields) at som
by RyanCavanaugh 9y ago
TypeScript has used structural typing since the beginning. Classes used to be nominal, but changed to structural (except for classes with private fields) at some point.
- klibertp 9y ago> Classes used to be nominal, but changed to structural Ah, ok, makes sense. I think I was last looking at TS around version 1.1 or something like that. Thanks!