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
typeUnknown={}|null|undefined|void;voidfunctionf<T,KextendskeyofT>(fn: (data: T)=>T[K]): (data: T)=>Unknown{returnfn;/* <-- expected to work, actual: Type '(data: T) => T[K]' is not assignable to type '(data: T) => Unknown'. Type 'T[K]' is not assignable to type 'Unknown'. Type 'T[K]' is not assignable to type '{}'.*/}
The text was updated successfully, but these errors were encountered:
how is it a duplicate of a work as intended? excuse me Unknown | null | undefined | void is a top type to any other type out there, and it is in co-variant position, so it must work
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
The text was updated successfully, but these errors were encountered: