Skip to content

Instantly share code, notes, and snippets.

@jmbeach
Created March 10, 2020 18:46
Show Gist options
  • Select an option

  • Save jmbeach/cdc860ffde615fb81a1d59f7a5daff78 to your computer and use it in GitHub Desktop.

Select an option

Save jmbeach/cdc860ffde615fb81a1d59f7a5daff78 to your computer and use it in GitHub Desktop.
example tsconfig file for making type checking work with javascript project and including custom type files.
{
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"checkJs": true,
"jsx": "react",
"module": "ESNext",
"moduleResolution": "classic",
"outDir": "lib",
"paths": {
"*": [
"src/@types/*",
"node_modules/@types/*"
]
},
"target": "ESNext",
"typeRoots": [
"node_modules/@types"
]
},
"include": [
"./src/**/*"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment