Skip to content

Commit 333b762

Browse files
TakehiroTadaclaude
andcommitted
feat: enable skipLibCheck: false with type stubs and pnpm patch
- Upgrade @hey-api/openapi-ts from 0.90.1 to 0.92.3 - Add vendor-typestubs.d.ts for framework-specific modules (Angular, Vue, Nuxt, ofetch) bundled in @hey-api/openapi-ts but not used in this project - Add @types/semver for @hey-api/shared's semver import - Patch @hey-api/openapi-ts to suppress TS2416 toAst() variance error caused by bundled declaration file incorrectly constraining base type - Remove skipLibCheck: true from tsconfig.json (now defaults to false) - Add biome override to allow any in type stubs file Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bac3d43 commit 333b762

File tree

7 files changed

+182
-34
lines changed

7 files changed

+182
-34
lines changed

biome.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@
2424
"recommended": true
2525
}
2626
},
27+
"overrides": [
28+
{
29+
"include": ["src/vendor-typestubs.d.ts"],
30+
"linter": {
31+
"rules": {
32+
"suspicious": {
33+
"noExplicitAny": "off"
34+
}
35+
}
36+
}
37+
}
38+
],
2739
"formatter": {
2840
"enabled": true,
2941
"indentStyle": "space",

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@
4747
"license": "MIT",
4848
"author": "Daiki Urata (@7nohe)",
4949
"dependencies": {
50-
"@hey-api/openapi-ts": "0.90.1",
50+
"@hey-api/openapi-ts": "0.92.3",
5151
"cross-spawn": "^7.0.3"
5252
},
5353
"devDependencies": {
5454
"@biomejs/biome": "^1.9.3",
5555
"@types/cross-spawn": "^6.0.6",
5656
"@types/node": "^22.7.4",
57+
"@types/semver": "^7.7.1",
5758
"@vitest/coverage-v8": "^1.5.0",
5859
"commander": "^12.0.0",
5960
"lefthook": "^1.6.10",
@@ -71,5 +72,10 @@
7172
"engines": {
7273
"node": ">=14",
7374
"pnpm": ">=9"
75+
},
76+
"pnpm": {
77+
"patchedDependencies": {
78+
"@hey-api/openapi-ts@0.92.3": "patches/@hey-api__openapi-ts@0.92.3.patch"
79+
}
7480
}
7581
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/dist/index.d.mts b/dist/index.d.mts
2+
index fd805770f0aff4a9f6c57560554908764ed5bdce..af40ec3b83741774a9e0ad82caf0acd3c97a3b55 100644
3+
--- a/dist/index.d.mts
4+
+++ b/dist/index.d.mts
5+
@@ -1354,6 +1354,7 @@ declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$27 {
6+
decl(): FuncTsDsl<'decl'>;
7+
/** Switches the function to a function expression form. */
8+
expr(): FuncTsDsl<'expr'>;
9+
+ // @ts-ignore TS2416 - bundled declaration has incorrect base type TsDsl<ArrowFunction>; conditional return is valid at source level
10+
toAst(): M extends 'decl' ? ts.FunctionDeclaration : M extends 'expr' ? ts.FunctionExpression : ts.ArrowFunction;
11+
$validate(): asserts this;
12+
private missingRequiredCalls;

pnpm-lock.yaml

Lines changed: 90 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)