docland
docland copied to clipboard
Showing 3 call signatures when only 2 should be shown
In the following example with overloads, deno docs show 3 call signatures but if you try calling the function in vs code, it only shows the first 2 call signatures in the hint which I believe is the correct behavior.
export function example(value: number): void;
export function example(text: string): void;
export function example(...args: [number | string]) {
console.log(...args);
}


https://crux.land/3zcYNc https://doc.deno.land/https://crux.land/api/get/3zcYNc.ts/~/example