Bug Report
🔎 Search Terms
overload argument type signature
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
declare const it: {
(test: () => Promise<void>): void;
(test: (input: string) => void): void;
}
it((input) => {
input.toUpperCase();
});
it(async () => {
// ..
});
🙁 Actual behavior
Error: Parameter 'input' implicitly has an 'any' type.
🙂 Expected behavior
No type error. The input parameter is type string and should be resolved as such.
For more context, see DefinitelyTyped/DefinitelyTyped#59075.