Skip to content

Commit e8bc8a6

Browse files
committed
pagic 0.7.22
1 parent 34f5a25 commit e8bc8a6

32 files changed

+17
-191
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
export DENO_INSTALL="/home/runner/.deno"
1818
export PATH="$DENO_INSTALL/bin:$PATH"
1919
deno --version
20-
deno install --unstable --allow-read --allow-write --allow-net -n pagic https://deno.land/x/[email protected].19/mod.ts
20+
deno install --unstable --allow-read --allow-write --allow-net -n pagic https://deno.land/x/[email protected].22/mod.ts
2121
pagic build
2222
2323
- name: Deploy

README.md

Lines changed: 8 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
next:
3+
text: 简介
4+
link: introduction/index.html
5+
---
6+
17
# TypeScript 入门教程
28

39
[![Actions Status](https://github.com/xcatliu/typescript-tutorial/workflows/gh-pages/badge.svg)](https://github.com/xcatliu/typescript-tutorial/actions)
@@ -7,10 +13,10 @@
713
## 关于本书
814

915
- [在线阅读](https://ts.xcatliu.com/)
10-
- [在线阅读(GitHub 版)](https://github.com/xcatliu/typescript-tutorial/blob/master/README.md)
1116
- [GitHub 地址][GitHub]
1217
- 作者:[xcatliu](https://github.com/xcatliu/)
13-
- 官方 QQ 群:[加入 QQ 群 767142358](https://jq.qq.com/?_wv=1027&k=5nkkFCl)
18+
- [加入官方 QQ 群 767142358](https://jq.qq.com/?_wv=1027&k=5nkkFCl)
19+
- 本网站使用 [Pagic](https://github.com/xcatliu/pagic) 构建
1420

1521
本书是作者在学习 [TypeScript] 后整理的学习笔记。
1622

@@ -54,39 +60,6 @@ TypeScript 虽然有[官方手册][Handbook]及其[非官方中文版][中文手
5460
>
5561
> —— [阮一峰](https://github.com/ruanyf)
5662
57-
## 目录
58-
59-
- [前言](README.md)
60-
- [简介](introduction/README.md)
61-
- [什么是 TypeScript](introduction/what-is-typescript.md)
62-
- [安装 TypeScript](introduction/get-typescript.md)
63-
- [Hello TypeScript](introduction/hello-typescript.md)
64-
- [基础](basics/README.md)
65-
- [原始数据类型](basics/primitive-data-types.md)
66-
- [任意值](basics/any.md)
67-
- [类型推论](basics/type-inference.md)
68-
- [联合类型](basics/union-types.md)
69-
- [对象的类型——接口](basics/type-of-object-interfaces.md)
70-
- [数组的类型](basics/type-of-array.md)
71-
- [函数的类型](basics/type-of-function.md)
72-
- [类型断言](basics/type-assertion.md)
73-
- [声明文件](basics/declaration-files.md)
74-
- [内置对象](basics/built-in-objects.md)
75-
- [进阶](advanced/README.md)
76-
- [类型别名](advanced/type-aliases.md)
77-
- [字符串字面量类型](advanced/string-literal-types.md)
78-
- [元组](advanced/tuple.md)
79-
- [枚举](advanced/enum.md)
80-
- [](advanced/class.md)
81-
- [类与接口](advanced/class-and-interfaces.md)
82-
- [泛型](advanced/generics.md)
83-
- [声明合并](advanced/declaration-merging.md)
84-
- [扩展阅读](advanced/further-reading.md)
85-
- [工程](engineering/README.md)
86-
- [代码检查](engineering/lint.md)
87-
- [编译选项](engineering/compiler-options.md)
88-
- [感谢](thanks/README.md)
89-
9063
## 版权许可
9164

9265
本书采用「保持署名—非商用」创意共享 4.0 许可证。
@@ -101,10 +74,6 @@ TypeScript 虽然有[官方手册][Handbook]及其[非官方中文版][中文手
10174
- [Handbook][中文版][中文手册]
10275
- [ECMAScript 6 入门]
10376

104-
---
105-
106-
- [下一章:简介](introduction/README.md)
107-
10877
[GitHub]: https://github.com/xcatliu/typescript-tutorial
10978
[TypeScript]: http://www.typescriptlang.org/
11079
[Handbook]: http://www.typescriptlang.org/docs/handbook/basic-types.html

advanced/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,3 @@
1111
- [泛型](generics.md)
1212
- [声明合并](declaration-merging.md)
1313
- [扩展阅读](further-reading.md)
14-
15-
---
16-
17-
- [上一章:内置对象](built-in-objects.md)
18-
- [下一章:类型别名](type-aliases.md)

advanced/class-and-interfaces.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,3 @@ let p2: PointInstanceType;
235235
## 参考
236236

237237
- [Interfaces](http://www.typescriptlang.org/docs/handbook/interfaces.html)[中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Interfaces.html)
238-
239-
---
240-
241-
- [上一章:类](class.md)
242-
- [下一章:泛型](generics.md)

advanced/class.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,3 @@ console.log(a.sayHi()); // My name is Jack
450450
- [ECMAScript 6 入门 - Class]
451451

452452
[ecmascript 6 入门 - class]: http://es6.ruanyifeng.com/#docs/class
453-
454-
---
455-
456-
- [上一章:枚举](enum.md)
457-
- [下一章:类与接口](class-and-interfaces.md)

advanced/declaration-merging.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,3 @@ interface Alarm {
9595
## 参考
9696

9797
- [Declaration Merging](http://www.typescriptlang.org/docs/handbook/declaration-merging.html)[中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Declaration%20Merging.html)
98-
99-
---
100-
101-
- [上一章:泛型](generics.md)
102-
- [下一章:扩展阅读](further-reading.md)

advanced/enum.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,3 @@ var directions = [0 /* Up */, 1 /* Down */, 2 /* Left */, 3 /* Right */];
233233

234234
[中文手册 - 枚举]: https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Enums.html
235235
[C# Enum]: https://msdn.microsoft.com/zh-cn/library/sbbt4032.aspx
236-
237-
---
238-
239-
- [上一章:元组](tuple.md)
240-
- [下一章:类](class.md)

advanced/further-reading.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,3 @@
2020
- [Namespaces](http://www.typescriptlang.org/docs/handbook/namespaces.html)[中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Namespaces.html)):避免全局污染,现在已被 [ES6 Module](http://es6.ruanyifeng.com/#docs/module) 替代
2121
- [Decorators](http://www.typescriptlang.org/docs/handbook/decorators.html)[中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Decorators.html)):修饰器,这是 [ES7 的一个提案](http://es6.ruanyifeng.com/#docs/decorator)
2222
- [Mixins](http://www.typescriptlang.org/docs/handbook/mixins.html)[中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Mixins.html)):一种编程模式,与 TypeScript 没有直接关系,可以参考 [ES6 中 Mixin 模式的实现](http://es6.ruanyifeng.com/#docs/class#Mixin模式的实现)
23-
24-
---
25-
26-
- [上一章:声明合并](declaration-merging.md)
27-
- [下一章:工程](../engineering/README.md)

advanced/generics.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,3 @@ function createArray<T = string>(length: number, value: T): Array<T> {
220220

221221
- [Generics](http://www.typescriptlang.org/docs/handbook/generics.html)[中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/generics.html)
222222
- [Generic parameter defaults](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-3.html#generic-parameter-defaults)
223-
224-
---
225-
226-
- [上一章:类与接口](class-and-interfaces.md)
227-
- [下一章:声明合并](declaration-merging.md)

advanced/string-literal-types.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,3 @@ handleEvent(document.getElementById('world'), 'dblclick'); // 报错,event 不
2323
## 参考
2424

2525
- [Advanced Types # Type Aliases](http://www.typescriptlang.org/docs/handbook/advanced-types.html#string-literal-types)[中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Advanced%20Types.html#字符串字面量类型)
26-
27-
---
28-
29-
- [上一章:类型别名](type-aliases.md)
30-
- [下一章:元组](tuple.md)

0 commit comments

Comments
 (0)