Bug Report
🔎 Search Terms
source has but target allows only
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
const func: (...args: [number, string] | [string, number]) => void = (item) => { }
🙁 Actual behavior
throw error
Type '(item: string | number) => void' is not assignable to type '(...args: [number, string] | [string, number]) => void'.
Types of parameters 'item' and 'args' are incompatible.
Type '[number, string] | [string, number]' is not assignable to type '[item: string | number]'.
Type '[number, string]' is not assignable to type '[item: string | number]'.
Source has 2 element(s) but target allows only 1.
🙂 Expected behavior
no error
Bug Report
🔎 Search Terms
source has but target allows only
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
throw error
🙂 Expected behavior
no error