Skip to content

Instantly share code, notes, and snippets.

@JoshuaKGoldberg
Last active May 2, 2019 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshuaKGoldberg/bb6c2a6541a3738f44448765c63f6d78 to your computer and use it in GitHub Desktop.
Save JoshuaKGoldberg/bb6c2a6541a3738f44448765c63f6d78 to your computer and use it in GitHub Desktop.
Replacing an incorrect @types definition
// webpack/assets/javascripts/esri.d.ts
// This file should be in that path 👆 but Gists don't allow subpaths...
declare module "esri" {
const wat: string;
export wat;
}
{
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"esModuleInterop": true,
"experimentalDecorators": true,
"jsx": "react",
"lib": ["esnext", "dom", "dom.iterable"],
"module": "esnext",
"moduleResolution": "node",
"noEmit": true,
"paths": {
"*": [
"webpack/assets/javascripts/*",
"node_modules/*"
]
},
"pretty": true,
"sourceMap": true,
"strict": true,
"target": "esnext",
},
"include": [
"./webpack/**/*",
"./node_modules/*enzyme*/lib/index.d.ts"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment