Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showing 3 call signatures when only 2 should be shown #122

Open
KyleJune opened this issue Mar 19, 2022 · 0 comments
Open

Showing 3 call signatures when only 2 should be shown #122

KyleJune opened this issue Mar 19, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@KyleJune
Copy link

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);
}

image

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants