Skip to content

Instantly share code, notes, and snippets.

@JoshuaKGoldberg
Last active May 2, 2019 12:56
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/06db6c9301950d6c76f1670453f235fe to your computer and use it in GitHub Desktop.
Save JoshuaKGoldberg/06db6c9301950d6c76f1670453f235fe to your computer and use it in GitHub Desktop.
Removing an incorrect @types definition
// webpack/assets/javascripts/clipboard-polyfill.d.ts
// This file should be in that path 👆 but Gists don't allow subpaths...
// Overrides incorrect types in node_modules/clipboard-polyfill/build/clipboard-polyfill.d.ts
// See https://github.com/lgarron/clipboard-polyfill/issues/106
{
"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