Skip to content

Commit

Permalink
Update for v5 (#86) (#100)
Browse files Browse the repository at this point in the history
* feat: fastify 5 with separated type-providers

* update fastify dep

---------

Signed-off-by: Gürgün Dayıoğlu <[email protected]>
Co-authored-by: Bram-dc <[email protected]>
Co-authored-by: Gürgün Dayıoğlu <[email protected]>
  • Loading branch information
3 people authored Jul 2, 2024
1 parent f77bad0 commit 1557135
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import {
import { FromSchema, FromSchemaDefaultOptions, FromSchemaOptions, JSONSchema } from 'json-schema-to-ts'

export interface JsonSchemaToTsProvider<Options extends FromSchemaOptions = FromSchemaDefaultOptions> extends FastifyTypeProvider {
output: this['input'] extends JSONSchema ? FromSchema<this['input'], Options> : unknown;
validator: this['schema'] extends JSONSchema ? FromSchema<this['schema'], Options> : unknown;
serializer: this['schema'] extends JSONSchema ? FromSchema<this['schema'], Options> : unknown;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.2.0",
"fastify": "^4.27.0",
"fastify": "^5.0.0-alpha.3",
"fastify-tsconfig": "^2.0.0",
"json-schema-to-ts": "^3.1.0",
"rimraf": "^5.0.7",
Expand Down

0 comments on commit 1557135

Please sign in to comment.