Explore Library
Code QuizIntermediate

Overloaded Signatures in .d.ts

Find the mistake in a set of overloaded function declarations.

Codetypescript
// utils.d.ts
declare function parse(input: string): string[];
declare function parse(input: number): number[];
declare function parse(input: string | number): string[] | number[] {
  return [];
}

What is the bug in these overload declarations?