Skip to content

Commit

Permalink
feat: fastify 5 with separated type-providers (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram-dc authored Jul 9, 2024
1 parent ec8ce81 commit e77c049
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export const TypeBoxValidatorCompiler: FastifySchemaCompiler<TSchema> = ({ schem
* ```
*/
export interface TypeBoxTypeProvider extends FastifyTypeProvider {
output: this['input'] extends TSchema ? Static<this['input']> : unknown
validator: this['schema'] extends TSchema ? Static<this['schema']> : unknown
serializer: this['schema'] extends TSchema ? Static<this['schema']> : unknown
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,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-plugin": "^4.5.1",
"fastify-tsconfig": "^2.0.0",
"npm-run-all": "^4.1.5",
Expand Down

0 comments on commit e77c049

Please sign in to comment.