@amadeus-it-group/kassette
Version:
Development server, used mainly for testing, which proxies requests and is able to easily manage local mocks.
10 lines (9 loc) • 517 B
TypeScript
type ObjectMap<T> = {
[key in string]: T;
};
export declare const isObject: <T>(value: any) => value is ObjectMap<T>;
export declare const copyDeep: (object: Readonly<ObjectMap<any>>) => ObjectMap<any>;
export declare const mergeDeepLeft: (leftOriginal: Readonly<ObjectMap<any>>, right: Readonly<ObjectMap<any>>) => ObjectMap<any>;
export declare const fromPairs: <T>(pairs: [string, T][]) => ObjectMap<T>;
export declare const rejectVoid: <T = any>(object: ObjectMap<T>) => ObjectMap<NonNullable<T>>;
export {};