typescript 类型继承并重写操作运算

pull/311/MERGE
ChenX 5 years ago
parent 863a0611f8
commit 33a60c95d2

@ -0,0 +1,9 @@
/*
Typescript
*/
/*
,使,
https://stackoverflow.com/questions/41285211/overriding-interface-property-type-defined-in-typescript-d-ts-file
*/
export type Merge<T, R> = Pick<T, Exclude<keyof T, keyof R>> & R;
Loading…
Cancel
Save