GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • 首页
  • 归档
  • 类别
  • 标签
  • 关于我
  • 上一页
  • 下一页
  • 3
  • 4

This view

  • Original page
  • New address

GeezerVison is showing waydez.github.io — (>_<)

2024-03-20发表2024-04-30更新Front-end Study4 分钟读完 (大约530个字)

TypeScript 中各种实用工具类型的功能示例

Partial

Partial 工具类型可以将接口中的所有属性转换为可选属性。

1
2
3
4
5
6
7
8
9
interface User {
id: number;
name: string;
age: number;
}

type PartialUser = Partial<User>;

const partialUser: PartialUser = { id: 1 };
阅读更多
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.