Skip to content

Commit

Permalink
fix: add Element type definition to avoid an error of @types/puppeteer (
Browse files Browse the repository at this point in the history
  • Loading branch information
shisama committed Sep 9, 2020
1 parent e43f18e commit 04493ad
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/create-plugin/tsconfig.json
Expand Up @@ -5,7 +5,12 @@
"target": "es2015",
"lib": ["es2015"],
"outDir": "dist",
"esModuleInterop": true
"esModuleInterop": true,
"typeRoots": [
"node_modules/@types",
"../../node_modules/@types",
"types"
],
},
"indlude": ["src/**/*.ts"],
"exclude": ["templates/**/*.ts"]
Expand Down
2 changes: 2 additions & 0 deletions packages/create-plugin/types/global/index.d.ts
@@ -0,0 +1,2 @@
// see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/24419
declare interface Element {}
3 changes: 3 additions & 0 deletions packages/rest-api-client/types/global/index.d.ts
Expand Up @@ -30,3 +30,6 @@ declare class Blob {
}

declare const PACKAGE_VERSION: string;

// see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/24419
declare interface Element {}
7 changes: 6 additions & 1 deletion packages/webpack-plugin-kintone-plugin/tsconfig.json
Expand Up @@ -6,7 +6,12 @@
"strict": true,
"target": "es5",
"outDir": "dist",
"esModuleInterop": true
"esModuleInterop": true,
"typeRoots": [
"node_modules/@types",
"../../node_modules/@types",
"types"
],
},
"indlude": ["src/**/*.ts"]
}
@@ -0,0 +1,2 @@
// see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/24419
declare interface Element {}

0 comments on commit 04493ad

Please sign in to comment.