Skip to content

Commit

Permalink
tsconfig update
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed May 1, 2022
1 parent da67981 commit 731b995
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
1 change: 0 additions & 1 deletion admin/admin.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions admin/tsconfig.json

This file was deleted.

7 changes: 5 additions & 2 deletions lib/adapter-config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// using the actual properties present in io-package.json
// in order to provide typings for adapter.config properties

import { native } from "../io-package.json";
import { native } from '../io-package.json';

type _AdapterConfig = typeof native;

Expand All @@ -13,4 +13,7 @@ declare global {
// Do not enter anything here!
}
}
}
}

// this is required so the above AdapterConfig is found by TypeScript / type checking
export {};
10 changes: 6 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Root tsconfig to set the settings and power editor support for all TS files
{
"compileOnSave": true,
"compilerOptions": {
Expand All @@ -10,6 +11,7 @@

"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
// this is necessary for the automatic typing of the adapter config
"resolveJsonModule": true,

Expand All @@ -22,17 +24,17 @@
"noImplicitAny": false,
// "noUnusedLocals": true,
// "noUnusedParameters": true,
"useUnknownInCatchVariables": false,

// Consider targetting es2017 or higher if you require the new NodeJS 8+ features
"target": "es2017",
// Consider targetting es2019 or higher if you only support Node.js 12+
"target": "es2018",

},
"include": [
"**/*.js",
"**/*.d.ts"
],
"exclude": [
"node_modules/**",
"admin/**"
"node_modules/**"
]
}

0 comments on commit 731b995

Please sign in to comment.