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 #26696

Open
nicolo-ribaudo opened this issue Nov 2, 2024 · 0 comments
Open

deno doc shows getter/setter pairs as methods #26696

nicolo-ribaudo opened this issue Nov 2, 2024 · 0 comments
Assignees
Labels
docs suggestion suggestions for new features (yet to be agreed)

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.

@bartlomieju bartlomieju added docs suggestion suggestions for new features (yet to be agreed) labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs suggestion suggestions for new features (yet to be agreed)
Projects
None yet
Development

No branches or pull requests

3 participants