interface Foo {
get value(): string;
set value(value: string);
get cursorPosition(): number | null;
set cursorPosition(position: number);
}
deno doc generates the following:
and, if I open the details:
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.
Version: Deno 2.0.4
My code:
deno doc
generates the following:and, if I open the details:
From this generated output, it's impossible to tell that they are a getter and a setter.
Ideally
deno doc
should showvalue
andcursorPosition
as properties (being careful about showing their types, becausecursorPosition
has different types forget
and forset
). If not possible, it should at least show somehow that they are a getter and a setter.