Closed migueloller closed 3 years ago
Per the TS docs you later linked, this requires TypeScript 4.1+. TSDX is still on TS 3.x.
Please see #926 for a workaround, will be marking as duplicate
Also, with regard to the issue template:
Your environment
You're missing the most important piece of the output here -- as specified in the command, the versions of TS and TSDX should be shown. You probably ran this outside of your project directory -- the directions say to run inside of it.
Current Behavior
tsdx build
throws an error if attempting to build while using this TypeScript feature:This is the LOC where it breaks:
Expected behavior
It should build just fine.
Suggested solution(s)
Perhaps an upgrade to
rollup-plugin-typescript2
or using@rollup/plugin-typescript
could help here?Additional context
https://www.typescriptlang.org/docs/handbook/2/mapped-types.html#key-remapping-via-as
Your environment