auto-console-group
Version:
Automagically group console messages
12 lines (11 loc) • 456 B
TypeScript
export type Entry = [string, (...args: unknown[]) => void];
type ValueEntry = [string, (value: any) => void];
type Obj = Record<string, any>;
type Func = (key: string) => Entry;
type Target = {
[key: string]: unknown;
};
export declare const createNonDeferrable: (key: string) => ValueEntry;
export declare const setValue: (target: Target) => (key: string) => ValueEntry;
declare const _default: (obj: Obj, func: Func) => Obj;
export default _default;