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

deno doc shows getter/setter pairs as methods #666

Open
nicolo-ribaudo opened this issue Nov 2, 2024 · 1 comment
Open

deno doc shows getter/setter pairs as methods #666

nicolo-ribaudo opened this issue Nov 2, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@nicolo-ribaudo
Copy link

Version: Deno 2.0.4

My code:

interface Foo {
  get value(): string;
  set value(value: string);

  get cursorPosition(): number | null;
  set cursorPosition(position: number);
}

deno doc generates the following:
image

and, if I open the details:
image

From this generated output, it's impossible to tell that they are a getter and a setter.

Ideally deno doc should show value and cursorPosition as properties (being careful about showing their types, because cursorPosition has different types for get and for set). If not possible, it should at least show somehow that they are a getter and a setter.

@lucacasonato lucacasonato added the bug Something isn't working label Nov 22, 2024
@lucacasonato lucacasonato transferred this issue from denoland/deno Nov 22, 2024
@lucacasonato
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants