Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Catatomik/json-schema-to-ts_TS2589

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-schema-to-ts_TS2589

geocode.schema.ts

Jump
Illustration of improper conditional type inference using json-schema-to-ts.

itinerary.schema.ts

Jump
Illustration of "Type instantiation is excessively deep and possibly infinite. ts(2589)" with json-schema-to-ts.
Conditional types are also wrongly inferred.


Note that manipulating (adding or removing some) conditional blocks in schemas cand lead to a TS2589 in geocode.schema.ts.
TS2589 occurs when the TypeScript compiler try to instantiate types, but get blocked because it's taking too long (too many operations to succeed).
This issue has already been pointed out on json-schema-to-ts : link.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks