Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using release >= 2.9.0 leads to Type instantiation is excessively deep and possibly infinite.deno-ts(2589) #150

Open
tomas-zijdemans-vipps opened this issue Jun 23, 2023 · 2 comments

Comments

@tomas-zijdemans-vipps
Copy link

tomas-zijdemans-vipps commented Jun 23, 2023

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>;
@lucgagan
Copy link

I am getting this in older versions too (v2.8.2)

@floratmin
Copy link

floratmin commented Oct 22, 2023

Also in node and 2.9.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants