-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Leveraging the schemas defined using `zod` we can infer the type of most of the input / output types for the API. There's a pending issue concerning the type inference of `query` parameters that is stuck to `never` currently (see honojs/middleware#200).
- Loading branch information
Showing
8 changed files
with
126 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 |
---|---|---|
@@ -1,7 +1,38 @@ | ||
{ | ||
"compilerOptions": { | ||
"esModuleInterop": true, | ||
// add Bun type definitions | ||
"types": ["bun-types"], | ||
|
||
// enable latest features | ||
"lib": ["ESNext"], | ||
"module": "esnext", | ||
"target": "esnext", | ||
|
||
// if TS 5.x+ | ||
"moduleResolution": "bundler", | ||
"noEmit": true, | ||
"allowImportingTsExtensions": true, | ||
"moduleDetection": "force", | ||
// if TS 4.x or earlier | ||
// "moduleResolution": "nodenext", | ||
|
||
"jsx": "react-jsx", // support JSX | ||
"allowJs": true, // allow importing `.js` from `.ts` | ||
|
||
// best practices | ||
"strict": true, | ||
"types": ["bun-types"] | ||
} | ||
"forceConsistentCasingInFileNames": true, | ||
"skipLibCheck": true, | ||
"composite": true, | ||
"downlevelIteration": true, | ||
"allowSyntheticDefaultImports": true | ||
}, | ||
"include": [ | ||
"src/**/*.ts", | ||
"package.json" | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"src/tests/*.spec.ts" | ||
] | ||
} |