-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: update fastify * chore: bump version of fastify * fix: plugin test callback * test: use strict mode * chore: use single asterisk * chore: update requirements * chore: add tsconfig.json
- Loading branch information
1 parent
fb30e21
commit 52b5347
Showing
4 changed files
with
38 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
# @fastify/type-provider-json-schema-to-ts | ||
|
||
A Type Provider for json-schema-to-ts | ||
A Type Provider for [json-schema-to-ts](https://github.com/ThomasAribart/json-schema-to-ts) | ||
|
||
## Install | ||
|
||
``` | ||
npm i @fastify/type-provider-json-schema-to-ts | ||
``` | ||
|
||
## TypeScript requirements | ||
|
||
It is required to use `[email protected]` or above with | ||
[`strict`](https://www.typescriptlang.org/tsconfig#strict) | ||
mode enabled and | ||
[`noStrictGenericChecks`](https://www.typescriptlang.org/tsconfig#noStrictGenericChecks) | ||
disabled. You may take the below configuration (`tsconfig.json`) | ||
as an example. | ||
|
||
```json | ||
{ | ||
"compilerOptions": { | ||
"strict": true, | ||
"noStrictGenericChecks": false | ||
} | ||
} | ||
``` | ||
|
||
## Plugin definition | ||
|
||
> **Note** | ||
|
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