Dylan的博客

世间所有的相遇,都是久别重逢

0%

TypeScript 的另一面:类型编程

正文包括:

  • 基础泛型
  • 索引类型 & 映射类型
  • 条件类型 & 分布式条件类型
  • infer 关键字
  • 类型守卫 is in 关键字
  • 内置工具类型机能与原理
  • 内置工具类型增强
  • 更多通用工具类型

接下来进入正文

阅读全文 »

Typescript 是什么?

  • Typescript 是 JavaScript 的超集,两者是所属关系。
  • Typescript 是 JavaScript 的增强,包含 JavaScript 的最新特性,非常适合创建大型项目
  • Typescript 是静态语言与动态语言 JavaScript 不同,静态语言在编写代码的时候就能发现潜在的错误,编写代码时静态语言能识别到可能使用到的属性等,像 data 参数静态语言能直接读出里面的属性 x, y
阅读全文 »

1.创建一个 md 文件

1
2
$ hexo new <title>
$ hexo new "我的页面"

2.布局(layout)

1
2
$ hexo new [layout] <title>
$ hexo new page "我的页面"
阅读全文 »

安装 git-flow

1
2
3
4
5
6
7
8
$ git flow init
Initialized empty Git repository in /Users/tobi/acme-website/.git/
Branch name for production releases: [master]
Branch name for "next release" development: [develop]
How to name your supporting branch prefixes?
Feature branches? [feature/]
Release branches? [release/]
Hotfix branches? [hotfix/]
阅读全文 »