Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ jobs:
run: npm install
- name: Check Types
run: npm run test:types
- name: Check Types (TypeScript 5.3)
run: npx -p typescript@5.3 -y -- tsc -p tests/types/tsconfig.dist.json
- name: Check Types (TypeScript 5.x)
run: npx -p typescript@5.x -y -- tsc -p tests/types/tsconfig.dist.json
Comment thread
lumirlumir marked this conversation as resolved.
Outdated
Comment thread
lumirlumir marked this conversation as resolved.
Outdated
are_the_types_wrong:
name: Are the types wrong?
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ export default defineConfig([
{
name: "json/jsonc",
plugins: { json },
files: ["**/*.jsonc"],
files: ["**/*.jsonc", "**/tsconfig*.json"],
language: "json/jsonc",
languageOptions: { allowTrailingCommas: true },
extends: ["json/recommended"],
},
{
Expand Down
16 changes: 16 additions & 0 deletions tests/types/tsconfig.dist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"checkJs": false, // The JSDoc @import tag used in JS files is not supported in TypeScript < 5.5.
"noEmit": true,
"rootDir": "../..",
"strict": true,
"strictNullChecks": true,
"useUnknownInCatchVariables": true,
"exactOptionalPropertyTypes": true,
"verbatimModuleSyntax": true
// "erasableSyntaxOnly" is not supported in TypeScript < 5.8.
},
"files": [],
"include": ["../../dist"]
Comment thread
lumirlumir marked this conversation as resolved.
Outdated
Comment thread
lumirlumir marked this conversation as resolved.
Outdated
}
Loading