I'm using Deno and the sample code as shown below. However, if I upgrade to 2.9.0 or 2.9.1 I get: "Type instantiation is excessively deep and possibly infinite.deno-ts(2589)" on the last line (FromSchema)
import { FromSchema } from "https://deno.land/x/json_schema_to_ts@v2.8.7/index.d.ts";
const objectSchema = {
type: "object",
properties: {
foo: { type: "string" },
bar: { type: "number" },
},
required: ["foo"],
} as const;
type Object = FromSchema<typeof objectSchema>;
I'm using Deno and the sample code as shown below. However, if I upgrade to 2.9.0 or 2.9.1 I get: "Type instantiation is excessively deep and possibly infinite.deno-ts(2589)" on the last line (FromSchema)