Closed jethrolarson closed 6 years ago
Ran into this over the weekend; it's stalling our ability to upgrade to TS 2.9 in a few of our microservices 🙁
It's possible to use the previous behavior of keyof
and get rid of these warnings until typings are updated by adding the following configuration to tsconfig.json
:
{
"compilerOptions": {
"keyofStringsOnly": true
}
}
It should be possible, unless you used some tuple types. The fixed length tuple is another incompatible part and it couldn't be disabled. I've opened #399 to address these issues but I'm not sure if it addressed all the TS 2.9 issues, at least there's no warning in generated definitions now and tests are passed.
The fixed length tuple is another incompatible part and it couldn't be disabled.
That one is my fault. You're welcome. :D
Looks like TS 2.9 changed the way
keyof
works and now a bunch of errors like the below are showing up: