plantain-00 / type-coverage

A CLI tool to check type coverage for typescript code
MIT License
1.25k stars 44 forks source link

Doesn't work with TypeScript 2.9 (Unknown compiler option 'keyofStringsOnly') #3

Closed karol-majewski closed 5 years ago

karol-majewski commented 6 years ago

Version(if relevant): 1.0.12

Environment(if relevant):

TypeScript 2.9.1 with "keyofStringsOnly": true in tsconfig.json.

Expected:

Runs without error.

Actual:

Throws with following error:

[
  {
    file: undefined,
    start: undefined,
    length: undefined,
    messageText: "Unknown compiler option \'keyofStringsOnly\'.",
    category: 1,
    code: 5023
  }
]

Shouldn't TypeScript be listed as a peer dependency?

plantain-00 commented 6 years ago

v1.1.0 add support for typescript 2.9.1, it should fix this issue

karol-majewski commented 6 years ago

Works fine now, thank you.