svelte-settings
Version:
> [!WARNING] > This project is a work in progress. Do not use it in any of your projects yet.
12 lines (11 loc) • 497 B
TypeScript
export declare function getDeep(obj: any, path: readonly string[]): unknown;
export declare function setDeep(obj: any, path: readonly string[], value: unknown): void;
export declare function deleteDeep(obj: any, path: readonly string[]): void;
/**
* Deep merge two objects.
* https://stackoverflow.com/a/34749873
* @param target
* @param ...sources
*/
export declare function mergeDeep(target: any, ...sources: any[]): any;
export declare function deepEqual(a: unknown, b: unknown): boolean;