Files
Panayot Cankov d098ff43f5 Add module names for the typedoc, make it work
Mark members with @private for typedoc.
2017-04-20 16:58:30 +03:00

11 lines
254 B
TypeScript

/**
* @module "utils/lazy"
*/ /** */
/**
* A function that evaluates the action only once.
* @param action The action to be evaluated to get the result.
* Returns the evaluated result.
*/
export default function lazy<T>(action: () => T): () => T;