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
Error:" Type '"title" | keyof (keyof T extends never ? { id?: string | number | undefined; } : { id: T; })' cannot be used to index type '({ id?: string | number | undefined; } | { id: T; }) & { title?: string | undefined; }'.
π Expected behavior
No error
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
Generic conditional type index
π Version & Regression Information
β― Playground Link
Output
Compiler Options
Playground Link: Provided
π Actual behavior
Error:" Type '"title" | keyof (keyof T extends never ? { id?: string | number | undefined; } : { id: T; })' cannot be used to index type '({ id?: string | number | undefined; } | { id: T; }) & { title?: string | undefined; }'.
π Expected behavior
No error
The text was updated successfully, but these errors were encountered: