-
-
Notifications
You must be signed in to change notification settings - Fork 40
Support TypeScript5.9.x and hey-api/openapi-ts 0.92.x #192
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
Open
TakehiroTada
wants to merge
9
commits into
7nohe:main
Choose a base branch
from
TakehiroTada:feature/support-ts-5.9.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,289
−470
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9d47c92
WIP
TakehiroTada 73cdc70
feat: change vitest timeout
TakehiroTada 65047fa
feat: change vitest timeout
TakehiroTada 9176ef3
fix: complete getMethodsFromService for TS 5.9 and hey-api 0.90.1
TakehiroTada bac3d43
refactor: replace type assertions with type guards and narrowing
TakehiroTada 333b762
feat: enable skipLibCheck: false with type stubs and pnpm patch
TakehiroTada 15f4edc
feat: update examples for hey-api 0.92.3 and fix codegen bugs
TakehiroTada 9751deb
docs: update documentation for hey-api 0.92.3 plugins system
TakehiroTada d95a137
test: improve branch coverage to 91.62% (above 90% threshold)
TakehiroTada File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -47,30 +47,35 @@ | |||||
| "license": "MIT", | ||||||
| "author": "Daiki Urata (@7nohe)", | ||||||
| "dependencies": { | ||||||
| "@hey-api/client-fetch": "0.4.0", | ||||||
| "@hey-api/openapi-ts": "0.53.8", | ||||||
| "@hey-api/openapi-ts": "0.92.3", | ||||||
| "cross-spawn": "^7.0.3" | ||||||
| }, | ||||||
| "devDependencies": { | ||||||
| "@biomejs/biome": "^1.9.3", | ||||||
| "@types/cross-spawn": "^6.0.6", | ||||||
| "@types/node": "^22.7.4", | ||||||
| "@types/semver": "^7.7.1", | ||||||
| "@vitest/coverage-v8": "^1.5.0", | ||||||
| "commander": "^12.0.0", | ||||||
| "lefthook": "^1.6.10", | ||||||
| "rimraf": "^5.0.5", | ||||||
| "ts-morph": "^23.0.0", | ||||||
| "typescript": "^5.5.4", | ||||||
| "ts-morph": "^27.0.2", | ||||||
| "typescript": "^5.9.3", | ||||||
| "vitest": "^1.5.0" | ||||||
| }, | ||||||
| "peerDependencies": { | ||||||
| "commander": "12.x", | ||||||
| "ts-morph": "23.x", | ||||||
| "ts-morph": "27.x", | ||||||
| "typescript": "5.x" | ||||||
| }, | ||||||
| "packageManager": "pnpm@9.6.0", | ||||||
| "engines": { | ||||||
| "node": ">=14", | ||||||
|
||||||
| "node": ">=14", | |
| "node": ">=20.19.0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| diff --git a/dist/index.d.mts b/dist/index.d.mts | ||
| index fd805770f0aff4a9f6c57560554908764ed5bdce..af40ec3b83741774a9e0ad82caf0acd3c97a3b55 100644 | ||
| --- a/dist/index.d.mts | ||
| +++ b/dist/index.d.mts | ||
| @@ -1354,6 +1354,7 @@ declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$27 { | ||
| decl(): FuncTsDsl<'decl'>; | ||
| /** Switches the function to a function expression form. */ | ||
| expr(): FuncTsDsl<'expr'>; | ||
| + // @ts-ignore TS2416 - bundled declaration has incorrect base type TsDsl<ArrowFunction>; conditional return is valid at source level | ||
| toAst(): M extends 'decl' ? ts.FunctionDeclaration : M extends 'expr' ? ts.FunctionExpression : ts.ArrowFunction; | ||
| $validate(): asserts this; | ||
| private missingRequiredCalls; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs list the option as
--schemaTypes, but the CLI defines--schemaType(singular). Update the heading/usage string so users can copy/paste the correct flag.