Skip to content

Commit 8609ffd

Browse files
chore: export validator
1 parent eb23a34 commit 8609ffd

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
"zod": "3.25.76",
201201
"zod-error": "1.5.0",
202202
"zod-validation-error": "^1.5.0",
203-
"@standard-schema/spec" : "^1.1.0"
203+
"@standard-schema/spec": "^1.1.0"
204204
},
205205
"devDependencies": {
206206
"@ai-sdk/provider-utils": "^1.0.22",

packages/core/src/v3/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export {
7979
type SchemaParseFn,
8080
isSchemaZodEsque,
8181
isSchemaValibotEsque,
82+
isSchemaStandardSchemaV1,
8283
isSchemaArkTypeEsque,
8384
} from "./types/schemas.js";
8485

packages/core/src/v3/types/schemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export type SchemaParseFn<TType> = (value: unknown) => Promise<TType> | TType;
127127
export type AnySchemaParseFn = SchemaParseFn<any>;
128128

129129
export function getSchemaParseFn<TType>(procedureParser: Schema): SchemaParseFn<TType> {
130-
const parser = procedureParser as any;
130+
const parser = procedureParser as any;
131131

132132
if (typeof parser === "function" && typeof parser.assert === "function") {
133133
// ParserArkTypeEsque - arktype schemas shouldn't be called as a function because they return a union type instead of throwing

0 commit comments

Comments
 (0)