TypeScript

[Pages:125]TypeScript

#typescript

1

1: TypeScript

2

2

2

Examples

3

3

3

3

Visual Studio

3

Visual Studio

4

WebStorm

4

IntelliJ IDEA

4

Atom atom-typescript

4

4

4

Node.js

4

npm

4

npm

5

5

5

tsconfig.json

5

,

6

6

6

7

8

TypeScript REPL Node.js

8

TypeScript ts-

8

2: tsconfig.json

10

10

10

10

tsconfig.json

10

10

11

Examples

11

TypeScript tsconfig.json

11

compileOnSave

13

13

14

preserveConstEnums

14

3: TSLint -

16

16

Examples

16

tslint.json

16

16

17

18

TSLint

18

4: TypeScript AngularJS

19

19

19

Examples

19

19

20 21

5: TypeScript SystemJS

23

Examples

23

Hello World SystemJS

23

6:

26

26

26

Examples

26

26

26

27

27

27

Generics

28

28

:

29

29

7:

31

31

31

Examples

32

npm

32

32

33

2.x

34

8:

35

35

Examples

35

webpack +

35

Browserify

35

35

35

API

36

36

36

Gruntfile.js

36

36

36

gulpfile.js

37

gulpfile.js tsconfig.json

37

Webpack

37

37

webpack.config.js

37

webpack 2.x, 3.x

37

webpack 1.x

38

MSBuild

38

NuGet

39

9:

40

40

40

40

40

41

Examples

41

41

41

42

42

43

43

44

45 46

10: TypeScript webpack

48

Examples

48

webpack.config.js

48

11: RequireJS

50

50

Examples

50

HTML requireJS CDN TypeS

50

tsconfig.json

req

50

12: (JS & native)

51

Examples

51

ReactJS,

51

& & webpack

52

13: javascript

54

54

Examples

54

54

,

54

55

14:

56

56

Examples

56

56

56

57

15:

59

59

Examples

59

59

59

60

Accessors

61

61

62

Transpilation

63

63

JavaScript

63

64

16:

65

Examples

65

65

find ()

65

17: ---- --TSC

66

66

Examples

66

.

66

.

66

18: -

69

Examples

69

,

69

/

69

70

19:

73

73

Examples

73

73

20:

75

75

Examples

75

JavaScript SourceMaps Visual Studio

75

JavaScript SourceMaps WebStorm

76

Script ts- Visual Studio

76

Script ts- WebStorm

77

21:

79

Examples

79

79

79

:

80

81

22:

82

82

82

Examples

82

instanceof

82

typeof

83

83

23: TypeScript

85

85

85

Examples

86

86

86

87

24:

88

88

88

88

Examples

88

88

25: TypeScript

90

Examples

90

npm

90

26:

91

Examples

91

91

91

27:

93

Examples

93

93

chai-immutable plugin

93

94

jest (ts-jest)

95

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download