Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重新整理目录和大纲 #202

Open
xcatliu opened this issue Dec 28, 2020 · 3 comments
Open

重新整理目录和大纲 #202

xcatliu opened this issue Dec 28, 2020 · 3 comments
Projects

Comments

@xcatliu
Copy link
Owner

xcatliu commented Dec 28, 2020

简介

  • 什么是 TypeScript
    • 发展历史
    • 为什么要用 TypeScript
    • 优缺点
    • 编译时,运行时
    • 强类型、弱类型、静态类型、动态类型
    • 各个名词间的关联(node, javascript, ecmascript, es6, es2020, typescript, npm, runtime, deno, ts-node)
  • 如何使用 TypeScript
    • 在 VSCode 中使用
      • 切换 TypeScript 版本
      • Code Runner
    • 使用在线的 Playground
    • 作为命令行使用
      • 介绍 ts-node
      • 介绍 deno
    • 在浏览器中运行
    • 使用 Webpack 构建
    • 编译选项

基本类型

  • 原始数据类型
  • 对象的类型——接口
  • 数组的类型
  • 函数的类型(...args)
  • 内置对象

类型变换

  • 类型别名
  • 联合类型
  • 类型断言(as const)
  • 非空断言
  • 类型保护(Type Guard)(is)
  • keyof

高级类型

  • 字面量类型(as const)
  • 元组
  • 枚举
    • this arg
    • #name
  • 类与接口
  • 泛型
    • extends
  • any, unknown, void, never
  • AnyFunction
  • object, Object, {}, json
  • 工具类型(Partial 等)
  • 模版字符串类型

工程化

  • 声明文件
  • 代码检查
  • 编译选项

感谢

未分类

  • 交叉类型
  • 类型别名 vs interface
  • interface vs 交叉类型
  • 类的类型
  • in vs 冒号
  • infer
  • 鸭子类型
@xcatliu xcatliu created this issue from a note in v1.0.0 (To do) Dec 28, 2020
@xcatliu
Copy link
Owner Author

xcatliu commented Jan 8, 2021

排版指南

空格

  • 中文与英文之间需要空格。
  • 中文与数字之间需要空格。
  • 全角标点与英文/数字之间不需要空格。

句号

  • 列表项如果是完整句子,就需要末尾句号。
  • 列表项如果不是完整句子,就不需要句号。

短语

  • 使用「如果」而不是「若」
  • 使用「使得」而不是「让」
  • 使用「以下」而不是「下面」
  • 使用「没错」而不是「是的」
  • 使用「提高可维护性」而不是「提升可维护性」也不是「增加可维护性」
  • 注意区分「开发」和「编写」,「开发」一个项目,「编写」一个文件
  • 使用「运行」而不是「执行」

@no13bus
Copy link

no13bus commented Feb 5, 2021

下载不了文件了。

@no13bus
Copy link

no13bus commented Feb 5, 2021

说错了。是打不开,因为没有解压密码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
v1.0.0
To do
Development

No branches or pull requests

2 participants