Skip to content

2-2实现-omit.md #35

@ZhengNan-coder

Description

@ZhengNan-coder
//你的答案
type MyOmit<T, K> = { [P in keyof T as P extends K ? never : P]: T[P] };

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions