Skip to content

Commit

Permalink
fix: upgrade json-schema-to-ts to v3.0.0 (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak authored Dec 26, 2023
1 parent ca07052 commit fb30e21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import {
FastifyPluginAsync
} from 'fastify'

import { JSONSchema7, FromSchema, FromSchemaOptions, FromSchemaDefaultOptions } from 'json-schema-to-ts'
import { JSONSchema, FromSchema, FromSchemaOptions, FromSchemaDefaultOptions } from 'json-schema-to-ts'

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

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"homepage": "https://github.com/fastify/fastify-type-provider-json-schema-to-ts#readme",
"peerDependencies": {
"fastify": "^4.0.0",
"json-schema-to-ts": "^2.0.0"
"json-schema-to-ts": "^3.0.0"
},
"tsd": {
"directory": "types"
Expand Down

0 comments on commit fb30e21

Please sign in to comment.