Skip to content

Commit 6d66461

Browse files
committed
Complete basics
1 parent f12418f commit 6d66461

10 files changed

+50
-0
lines changed

basics/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@
1111
- [函数的类型](type-of-function.md)
1212
- [声明文件(.d.ts)](declaration-files.md)
1313
- [内置对象](built-in-objects.md)
14+
15+
---
16+
17+
- [上一章:Hello TypeScript](../introduction/hello-typescript.md)
18+
- [下一章:原始数据类型](primitive-data-types.md)

basics/any.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,8 @@ something.setName('Jerry Lee');
6666
## 参考
6767

6868
- [Handbook - Basic Types # Any](http://www.typescriptlang.org/docs/handbook/basic-types.html#any) | [中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Basic%20Types.html#任意值)
69+
70+
---
71+
72+
- [上一章:原始数据类型](primitive-data-types.md)
73+
- [下一章:类型推论](type-inference.md)

basics/built-in-objects.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,8 @@ npm install @types/node --save-dev
105105

106106
[内置对象]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
107107
[TypeScript 核心库的定义文件]: https://github.com/Microsoft/TypeScript/tree/master/src/lib
108+
109+
---
110+
111+
- [上一章:声明文件(.d.ts)](declaration-files.md)
112+
- [下一章:进阶](../advanced/README.md)

basics/declaration-files.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,8 @@ npm install @types/jquery --save-dev
7878

7979
- [Handbook - Writing Declaration Files](http://www.typescriptlang.org/docs/handbook/writing-declaration-files.html) | [中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Writing%20Definition%20Files.html)
8080
- [Handbook - Triple-Slash Directives](http://www.typescriptlang.org/docs/handbook/triple-slash-directives.html) | [中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Triple-Slash%20Directives.html)
81+
82+
---
83+
84+
- [上一章:函数的类型](type-of-function.md)
85+
- [下一章:内置对象](built-in-objects.md)

basics/primitive-data-types.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ let num: number = u;
151151
- [ES6 中的二进制和八进制表示法][]
152152
- [ES6 中的模板字符串][]
153153

154+
---
155+
156+
- [上一章:基础](README.md)
157+
- [下一章:任意值(Any)](any.md)
158+
154159
[Primitive data types]: https://developer.mozilla.org/en-US/docs/Glossary/Primitive
155160
[ES6 中的新类型 `Symbol`]: http://es6.ruanyifeng.com/#docs/symbol
156161
[ES6 中的二进制和八进制表示法]: http://es6.ruanyifeng.com/#docs/number#二进制和八进制表示法

basics/type-inference.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@ myFavoriteNumber = 7;
3535
## 参考
3636

3737
- [Handbook - Type Inference](http://www.typescriptlang.org/docs/handbook/type-inference.html) | [中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Type%20Inference.html)
38+
39+
---
40+
41+
- [上一章:任意值(Any)](any.md)
42+
- [下一章:联合类型](union-types.md)

basics/type-of-array.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,8 @@ function sum() {
8787

8888
- [Handbook - Basic Types # Array](http://www.typescriptlang.org/docs/handbook/basic-types.html#array) | [中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Basic%20Types.html#数组)
8989
- [Handbook - Interfaces # Indexable Types](http://www.typescriptlang.org/docs/handbook/interfaces.html#indexable-types) | [中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Interfaces.html#数组类型)
90+
91+
---
92+
93+
- [上一章:对象的类型——接口](type-of-object-interfaces.md)
94+
- [下一章:函数的类型](type-of-function.md)

basics/type-of-function.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,8 @@ push(a, 1, 2, 3);
183183
[ES6 中的箭头函数]: http://es6.ruanyifeng.com/#docs/function#箭头函数
184184
[ES6 中函数参数的默认值]: http://es6.ruanyifeng.com/#docs/function#函数参数的默认值
185185
[ES6 中的 rest 参数]: http://es6.ruanyifeng.com/#docs/function#rest参数
186+
187+
---
188+
189+
- [上一章:数组的类型](type-of-array.md)
190+
- [下一章:声明文件(.d.ts)](declaration-files.md)

basics/type-of-object-interfaces.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,8 @@ let xcatliu: Person = {
159159
## 参考
160160

161161
- [Handbook - Interfaces](http://www.typescriptlang.org/docs/handbook/interfaces.html) | [中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Interfaces.html)
162+
163+
---
164+
165+
- [上一章:联合类型](union-types.md)
166+
- [下一章:数组的类型](type-of-array.md)

basics/union-types.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ myFavoriteNumber.toString();
4141
## Links
4242

4343
- [Handbook - Advanced Types # Union Types](http://www.typescriptlang.org/docs/handbook/advanced-types.html#union-types) | [中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Advanced%20Types.html#联合类型)
44+
45+
---
46+
47+
- [上一章:类型推论](type-inference.md)
48+
- [下一章:对象的类型——接口](type-of-object-interfaces.md)

0 commit comments

Comments
 (0)