23.06.2015 Views

TypeScript Language Specification v1.5

TypeScript Language Specification v1.5

TypeScript Language Specification v1.5

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BindingElement:<br />

Identifier Initialiser opt<br />

BindingPattern Initialiser opt<br />

BindingRestElement:<br />

... Identifier<br />

A.4 Functions<br />

FunctionDeclaration: ( Modified )<br />

FunctionOverloads opt FunctionImplementation<br />

FunctionOverloads:<br />

FunctionOverload<br />

FunctionOverloads FunctionOverload<br />

FunctionOverload:<br />

function Identifier CallSignature ;<br />

FunctionImplementation:<br />

function Identifier CallSignature { FunctionBody }<br />

A.5 Interfaces<br />

InterfaceDeclaration:<br />

interface Identifier TypeParameters opt InterfaceExtendsClause opt ObjectType<br />

InterfaceExtendsClause:<br />

extends ClassOrInterfaceTypeList<br />

ClassOrInterfaceTypeList:<br />

ClassOrInterfaceType<br />

ClassOrInterfaceTypeList , ClassOrInterfaceType<br />

ClassOrInterfaceType:<br />

TypeReference<br />

A.6 Classes<br />

ClassDeclaration:<br />

class Identifier TypeParameters opt ClassHeritage { ClassBody }<br />

ClassHeritage:<br />

ClassExtendsClause opt ImplementsClause opt<br />

161

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

Saved successfully!

Ooh no, something went wrong!