shhider / shhider.github.io

我的博客。前端内容正在迁移到 Issues 🔝
http://shhider.github.io
1 stars 0 forks source link

TypeScript Read-List #13

Open shhider opened 1 year ago

shhider commented 1 year ago

👇 See the list below

shhider commented 1 year ago

TypeScript & Set Theory

Making sense of TypeScript using set theory

type = { aa: string } 不是指一个「有且仅有 aa 属性的 object」,而是所有「有 aa 属性的值」。因此:

More

shhider commented 1 year ago

Interface & Type Alias

Differences Between Type Aliases and Interfaces - TypeScript Documentation

the key distinction is that a type cannot be re-opened to add new properties vs an interface which is always extendable.

More

shhider commented 1 year ago

TypeScript's Migration to Modules - TypeScript