lazy
export declare function lazy<T>(cb: () => T): () => T;
export declare function lazy<T>(cb: () => T): () => T;
Lazily evaluate a callback, storing its result
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
T | No | None |
Name | Type | Optional | Description |
---|---|---|---|
cb | () => T | No | None |