Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
The error is about not being able to assign a string to a `track${string}`, because `track${key}` is obviously of type string and nothing else.
-
And yeah, the expression _can_ be explicitly cast to a `track${string}`, Typescript just doesn't do it by itself because ¯\_(ツ)_/¯
-
@DevLivesMatter It is but since string abuse is natural in JS it's definitely necessary. The way I see it, the goal of Typescript is to feel like a natural addition to JS without changing the JS code itself.
-
dder22824y@homo-lorens we should start coding in TS and compiling to machine code or at least Wasm instead of transpiling to JS and interpret it. -my opinion.
@phillip I think TS is pretty good compared to other MS products.
But I was actually serious about them usually releasing unfinished shit, just to catch up. See Windows for example.
For fuck's sake Microsoft, why on Earth do you announce a half-done feature? Was this an idea from marketing? Upper management? I am fairly certain that nobody who actually writes code for a living would have ever approved releasing a rushed feature to a TYPE SYSTEM.
rant
typescript
microsoft
incomplete features
template string types