Open ThomasAribart opened 1 year ago
const mySchema = { type: "object", additionalProperties: { type: "number" }, propertyNames: { enum: ["a", "b", "c" ] }, } as const; type Test = FromSchema<typeof mySchema> // => Record<"a" | "b" | "c", number>