Skip to content

Commit be232fa

Browse files
fix: updated arktype json function
1 parent c97f9c8 commit be232fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vendors/arktype.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Type } from "arktype";
22
import type { JSONSchema7 } from "json-schema";
33
import type { ToJsonSchemaFn } from "./utils.js";
44

5-
export default async function getToJsonSchemaFn(): Promise<ToJsonSchemaFn> {
5+
export default function getToJsonSchemaFn(): ToJsonSchemaFn {
66
return (schema, options) =>
77
(schema as Type).toJsonSchema(options) as JSONSchema7;
88
}

src/vendors/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const getToJsonSchemaFn = async (
1212
return cached;
1313
}
1414

15-
let vendorFnPromise: Promise<ToJsonSchemaFn>;
15+
let vendorFnPromise: ToJsonSchemaFn | Promise<ToJsonSchemaFn>;
1616

1717
switch (vendor) {
1818
case "arktype":

0 commit comments

Comments
 (0)