YousefED / typescript-json-schema

Generate json-schema from your Typescript sources
BSD 3-Clause "New" or "Revised" License
3.17k stars 323 forks source link

TypeError: Unsupported type: TEnumerate<N, Acc> #515

Open DerHerrGammler opened 2 years ago

DerHerrGammler commented 2 years ago

I just have a type that is not supported. Is there a way to just igore the type and not display it. Like a ignoreError parameter or skipError parameter?

type TEnumerate<N extends number, Acc extends number[] = []> = Acc["length"] extends N
    ? Acc[number]
    : TEnumerate<N, [...Acc, Acc["length"]]>;