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
typeArrayLength<Lengthextendsnumber,CurrentArrayextendsnever[]>=CurrentArray['length']extendsLength
? CurrentArray
: ArrayLength<Length,[never, ...CurrentArray]>typeWrapArray<Textendsunknown[]>=T//error: Type 'ArrayLength<T, []>' does not satisfy the constraint 'unknown[]'exporttypeFoo<Textendsnumber>=WrapArray<ArrayLength<T,[]>>
π Actual behavior
error: Type 'ArrayLength<T, []>' does not satisfy the constraint 'unknown[]'
π Expected behavior
no error
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
4.5 recursive conditional type narrow generic
π Version & Regression Information
4.5.0-dev.20211001
β― Playground Link
π» Code
π Actual behavior
π Expected behavior
no error
The text was updated successfully, but these errors were encountered: