Skip to content

Commit 434539e

Browse files
chore: refactor to new typeschema package
1 parent f378664 commit 434539e

File tree

4 files changed

+418
-4
lines changed

4 files changed

+418
-4
lines changed

packages/schema-validator/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"hono": ">=3.9.0"
3131
},
3232
"dependencies": {
33-
"@decs/typeschema": "^0.12.2"
33+
"@typeschema/all": "^0.14.1"
3434
},
3535
"devDependencies": {
3636
"hono": "^3.11.7",

packages/schema-validator/src/index.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import type { Infer, InferIn, Schema, ValidationIssue } from '@decs/typeschema'
2-
import { validate } from '@decs/typeschema'
1+
import type { Infer, InferIn, Schema } from '@typeschema/main'
2+
import type {ValidationIssue} from '@typeschema/core'
3+
import { validate } from '@typeschema/main'
34
import type { Context, Env, MiddlewareHandler, TypedResponse, ValidationTargets } from 'hono'
45
import { HTTPException } from 'hono/http-exception'
56
import { validator } from 'hono/validator'

packages/swagger-editor/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@
4545
"tsup": "^7.2.0",
4646
"vitest": "^0.34.5"
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)