question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for compilerOptions.types

See original GitHub issue

Given this tsconfig.json:

{
  "compilerOptions": {
    "jsx": "react",
    "moduleResolution": "node",
    "noFallthroughCasesInSwitch": true,
    "noImplicitAny": true,
    "noImplicitReturns": true,
    "noImplicitThis": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "sourceMap": true,
    "strictNullChecks": true,
    "target": "es2015",
    "types": [
      "jest",
      "node"
    ]
  }
}

TypeDoc fails to run with the following error:

Error: Unknown option `types.0`.
Error: Unknown option `types.1`.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Radagaisuscommented, Oct 18, 2016

A quick patch is to add typeRoots and types to the ignored compiler options. Though, for better support of future TypeScript versions, and an easier upgrade path, it’s best to switch to a whitelist.

0reactions
Gerrit0commented, Jan 17, 2020

This appears to have been fixed with #449

Read more comments on GitHub >

github_iconTop Results From Across the Web

TSConfig Option: types - TypeScript
This feature differs from typeRoots in that it is about specifying only the exact types you want included, whereas typeRoots supports saying you...
Read more >
Typescript 2.0. "types" field in tsconfig.json - Stack Overflow
As of TypeScript 2.* the 'tsconfig.json' has the following two properties available: { 'typeRoots': [], 'types': [] }.
Read more >
Using tsconfig.json - TypeScript
See our full list of supported Compiler Options. The "files" property takes a list of relative or absolute file paths. The "include" and...
Read more >
TypeScript configuration - Angular
It is a superset of JavaScript with design-time support for type safety and ... and Angular compiler options that all projects in the...
Read more >
Understanding TypeScript Configuration Options
Contribute to manakuro/typescript-compiler-options-example development by creating an… ... Normally it will be used as type checking in JavaScript project.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found