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
typeA='a'constz: A[]=['a'];// fine as expected// how come 'a' cannot be inferred as type `A`?constx: A[]=Array.from(['a'])// Error: Type 'string' not assignable to 'a'// my workaround (without creating a variable):consty: A[]=Array.from([_.identity<A>('a')])