TypeScript

[Pages:107]TypeScript

#typescript

1

1: TypeScript

2

2

2

Examples

3

3

3

3

3

Visual Studio

3

WebStorm

3

IntelliJ IDEA

3

3

3

3

Node.js.

3

npm

3

npm

4

4

TypeScript

4

tsconfig.json

4

4

5

5

5

6

Node.jsTypeScript REPL

6

tsTypeScript

6

2: tsconfig.json

8

8

8

8

tsconfig.json

8

8

8

Examples

8

tsconfig.jsonTypeScript

8

compileOnSave

10

10

11

preserveConstEnums

11

3: TSLint -

13

13

Examples

13

tslint.json

13

13

14

14

TSLint

14

4: TypeScript

16

16

Examples

16

16

16

16 16 16

16

17

17

17

17

18

21

const Enum

22

5: TypeScriptSystemJS

24

Examples

24

SystemJSHello World

24

6: AngularJSTypeScript

27

27

27

Examples

27

27

28

28

7: ReactTypescriptJS

30

Examples

30

ReactJSTypescript

30

31

8: RequireJSTypescript

33

33

Examples

33

requireJS CDNHTMLTypeScript

33

tsconfig.jsonrequireJS

33

9:

34

34

Examples

34

34

34

34

36

10:

37

Examples

37

37

chai-immutable

37

38

ts-jest

39

40

11:

42

Examples

42

42

42

12: javascript

44

44

Examples

44

44

44

44

13: TypeScriptwebpack

46

Examples

46

webpack.config.js

46

14:

48

48

48

Examples

48

npm

48

49

49

typescript 2.x

50

15: -TSC

51

51

Examples

51

51

Typescripttypescript

51

16:

53

53

Examples

53

1extendssuper

53

2 -

53

17:

55

55

55

55

55

55

Examples

55

55

55

56

56

57

57

57

58

59

18:

60

Examples

60

60

find

60

19:

61

Examples

61

61

61

62

62

20: -

64

Examples

64

Hello world

64

/

64

65

21:

67

67

67

Examples

67

67

67

67

67

68

68

69

69

69

22:

71

71

71

71

Examples

71

Mixins

71

23: TypeScript

73

73

73

Examples

73

73

73

74

24:

75

75

75

Examples

75

instanceof

75

typeof

75

76

25: TypeScript

78

Examples

78

npm

78

26: Build Tools

79

79

Examples

79

webpack +

79

Browserify

79

79

79

API

79

80

80

Gruntfile.js

80

80

80

gulpfile.js

80

gulpfile.jstsconfig.json

80

WebPack

81

81

webpack.config.js

81

webpack 2.x3.x

81

webpack 1.x

81

MSBuild

82

NuGet

82

27:

84

84

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

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

Google Online Preview   Download