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
Errors in code
Argument of type'C[N]' is not assignable to parameter of type'StateManager<StateType<C[N]>>'.
Type 'C[KeyOfType<C, StateManager<any>>]' is not assignable to type'StateManager<StateType<C[N]>>'.
Type 'C[C[keyof C] extends StateManager<any> ? keyof C : never]' is not assignable to type'StateManager<StateType<C[N]>>'.
Type 'C[keyof C]' is not assignable to type'StateManager<StateType<C[N]>>'.
Type 'C[string] | C[number] | C[symbol]' is not assignable to type'StateManager<StateType<C[N]>>'.
Type 'C[string]' is not assignable to type'StateManager<StateType<C[N]>>'.
π Expected behavior
No error reported as it works before, as instance in v4.4.4:
Bug Report
π Search Terms
keyof
π Version & Regression Information
Also the bug was reproduced in the Playground with version 4.5.0-beta
β― Playground Link
Playground (v4.5.0-beta)
π» Code
π Actual behavior
The Error reported and compilation failed:
π Expected behavior
No error reported as it works before, as instance in v4.4.4:
Playground (v4.4.4)
The text was updated successfully, but these errors were encountered: