mirror of https://gitee.com/cf-fz/WebCAD.git
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…
Reference in new issue