Properties
interface Y { ():number; }
class X {}
class X { constructor() { } } class X { static { } }
interface Y { new():Y; }
enum E
Inside module and script only function f() { }
interface Y { []:number; }
interface Y {}
predefined type (void) or keyword (class)
Jsdoc @link: in {@link C link text}
, the before and after text "{@link " and "}"
Jsdoc @link: in {@link C link text}
, the entity name "C"
Jsdoc @link: in {@link C link text}
, the link text "link text"
var x = class X {}
Inside function
Inside function
class X { public|private* accessor foo: number; }
class X { public|private* foo() {} }
class X { public|private* get|set foo:number; }
class X { public|private* foo:number; } interface Y { foo:number; }
module foo {}
function foo(Y: string)
top level script node
String literal
type T = ...
await using foo = ...
Inside module and script only const v = ..
using foo = ...