23.06.2015 Views

TypeScript Language Specification v1.5

TypeScript Language Specification v1.5

TypeScript Language Specification v1.5

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ArrayType:<br />

PrimaryType [no LineTerminator here] [ ]<br />

TupleType:<br />

[ TupleElementTypes ]<br />

TupleElementTypes:<br />

TupleElementType<br />

TupleElementTypes , TupleElementType<br />

TupleElementType:<br />

Type<br />

UnionType:<br />

PrimaryOrUnionType | PrimaryType<br />

FunctionType:<br />

TypeParameters opt ( ParameterList opt ) => Type<br />

ConstructorType:<br />

new TypeParameters opt ( ParameterList opt ) => Type<br />

TypeQuery:<br />

typeof TypeQueryExpression<br />

TypeQueryExpression:<br />

Identifier<br />

TypeQueryExpression . IdentifierName<br />

PropertySignature:<br />

PropertyName ? opt TypeAnnotation opt<br />

PropertyName:<br />

IdentifierName<br />

StringLiteral<br />

NumericLiteral<br />

CallSignature:<br />

TypeParameters opt ( ParameterList opt ) TypeAnnotation opt<br />

157

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!