For the complete documentation index, see llms.txt. This page is also available as Markdown.

Partial

type Partial<T> = { [P in keyof T]?: T[P] };

Partial 就是将传入的属性全部变为可选项.

最后更新于