- TypeScript Reference for JS developers
Glossary of keywords, operators, statements and directives
boolean
,
string
,
number
,
undefined
,
null
{
}
is
,
asserts condition
,
asserts value is Type
extends Type ? IfTrue : IfFalse
{
[Property in keyof Type]: Type;
-readonly [Property in keyof Type]: Type[Property];
readonly [Property in keyof Type]: Type[Property];
[Property in keyof Type]-?: Type[Property];
[Property in keyof Type]?: Type[Property];
[Properties in keyof Type as NewKeyType]: Type[Properties]
}
{
}
{
}
{
constructor(parameter arg: Type)
}
@decorator method(...args) {...}
method(@decorator arg: Type) {...}
@decorator get accessor() {...}
@decorator set accessor(value) {...}
}
Exclude<UnionType, ExcludedMembers>