1 | declare type AnyFn = (...args: unknown[]) => unknown;
|
2 | /**
|
3 | * @name lazyMethod
|
4 | * @description
|
5 | * Creates a lazy, on-demand getter for the specific value. Upon get the value will be evaluated.
|
6 | */
|
7 | export declare function lazyMethod<T, K>(result: Record<string, T> | AnyFn, item: K, creator: (d: K) => T, getName?: (d: K) => string): void;
|
8 | /**
|
9 | * @name lazyMethods
|
10 | * @description
|
11 | * Creates lazy, on-demand getters for the specific values.
|
12 | */
|
13 | export declare function lazyMethods<T, K>(result: Record<string, T>, items: K[], creator: (v: K) => T, getName?: (m: K) => string): Record<string, T>;
|
14 | export {};
|