Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 1.81 KB

File metadata and controls

57 lines (36 loc) · 1.81 KB

my-awesome-typescript-project


my-awesome-typescript-project / src/declaration

src/declaration

Sample declaration file.

Table of contents

Remarks

  • Declaration files provides a way to declare types or values without providing implementations.
  • *.ts files are implementation files that can contain types and executable code.
  • *.d.ts files are declaration files that contain only type information.
  • Best practice is of course to manage declarations files instead of letting tsc generate them.
  • For instance, interface anotherShape is missing from the tsc emitted declaration file (see below).

Namespaces

Namespace Description
anotherNamespace Namespace declaration.

Interfaces

anotherShape

Defined in: src/declaration.d.ts:16

Interface declaration.

Properties

Property Type Defined in
aye string src/declaration.d.ts:17
bee number src/declaration.d.ts:18

Type Aliases

returnVoid

type returnVoid = returnVoid;

Defined in: src/declaration.d.ts:25

Type declaration.