compiling it to JS first?
Afaik the node type stripping doesn't support all of TS yet (declaration merging, enums, etc)
well that's a big one, don't want my app to break cause of that
You can just test
yeah but than I might have the issue in the future that my app won't deploy anymore cause I'm using some fancy ass TS
Just stay away from enums and always use type keyword for type imports and you should be fine
How about constructor visibility params? The proper name eludes me, but constructor(private cake:string) {} isn't standard JS. The corresponding JS would be constructor(cake) { this.cake = cake; }
Yeah those don't work with strip-types but they MIGHT work with transform-types
I think it's something like "constructor field parameters"
Обсуждают сегодня