parent
de775511d0
commit
50cfbaaab5
@ -1,3 +1,5 @@
|
|||||||
import { type Mask } from "../store/mask";
|
import { type Mask } from "../store/mask";
|
||||||
|
|
||||||
export type BuiltinMask = Omit<Mask, "id">;
|
export type BuiltinMask = Omit<Mask, "id"> & {
|
||||||
|
builtin: true;
|
||||||
|
};
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
export function merge(target: any, source: any) {
|
||||||
|
Object.keys(source).forEach(function (key) {
|
||||||
|
if (source[key] && typeof source[key] === "object") {
|
||||||
|
merge((target[key] = target[key] || {}), source[key]);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
target[key] = source[key];
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in new issue