Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore]: use TSTyche for type testing #2901

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
"project": "./tsconfig.json"
},
"files": [
"**/*.test-d.ts"
"**/*.tst.ts"
],
"extends": [
"plugin:@typescript-eslint/recommended"
Expand Down
257 changes: 24 additions & 233 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@iobroker/types" />

import { clearTimeout } from 'node:timers';

declare function assertNever(val: never): never;
Expand Down
13 changes: 3 additions & 10 deletions packages/types-public/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"url": "https://github.com/ioBroker/ioBroker.js-controller/tree/master/packages/types-public"
},
"devDependencies": {
"tsd": "^0.24.1"
"tstyche": "^2.1.1"
},
"scripts": {
"build": "ts-node build.ts",
"test": "tsd"
"test": "tstyche"
},
"main": "index.js",
"types": "index.d.ts",
Expand All @@ -33,12 +33,5 @@
"index.d.ts",
"public.d.ts",
"LICENSE"
],
"tsd": {
"compilerOptions": {
"types": [
"@iobroker/types"
]
}
}
]
}
Loading