You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deeply nested scopes breaks type inference of generics mixed with private aliasΒ #1437
import{generic,scope}from"arktype";const$scope1=scope({"#private": "string",// If not private, it works"generic<t>": "private",});const$scope2=scope({
...$scope1.export(),});const$scope3=scope({
...$scope2.export(),});constThing1=$scope1.type("generic<string>");constThing2=$scope2.type("generic<string>");constThing3=$scope3.type("generic<string>");// stringtypeT1=typeofThing1.inferIn;// stringtypeT2=typeofThing2.inferIn;// nevertypeT3=typeofThing3.inferIn;
Activity
fix(type): check shallow cycles statically
docs(type): cite the issues the release fixes and add the entries it β¦
ssalbdivad commentedon Nov 18, 2026
Fixed in 3.0.0-beta.0 (#1728). Try it with
npm i arktype@next.