Files
NativeScript/nativescript-core/utils/lazy.d.ts
2020-01-17 15:12:28 +02: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;