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
Actual behavior:
In the latest nightly, this produces this error:
Type '(IAction & any[]) | (readonly IAction[] & any[]) | (IAction | readonly IAction[])[]' is not assignable to type 'readonly IAction[]'.
Type '(IAction | readonly IAction[])[]' is not assignable to type 'readonly IAction[]'.
Type 'IAction | readonly IAction[]' is not assignable to type 'IAction'.
Property 'x' is missing in type 'readonly IAction[]' but required in type 'IAction'.ts(2322)
TypeScript Version: 4.2.0-dev.20201208
Search Terms:
Code
Expected behavior:
This compiles fine in TS 4.1.2
Actual behavior:
In the latest nightly, this produces this error:
Playground Link: https://www.typescriptlang.org/play?ts=4.2.0-dev.20201208#code/JYOwLgpgTgZghgYwgAgJIEEFmAexMgbwChlTkAPALmRAFcBbAI2gG4iBfIomWkLXfDBw4AFHCgBzahn55kAH2QAlCHAAmeADYBPdFChxtAHhnY8APgCUhEmQR4AzmGSIzIB9RXqtu-YZOYbubIALzIegbaAHTADhGGYpLWAPwuksjUANriEgC6bOxAA
Related Issues:
The text was updated successfully, but these errors were encountered: