Files
NativeScript/nativescript-core/utils/lazy.d.ts
Nathan Walker 1525c89733 chore: cleanup
2020-07-11 08:32:21 -07:00

7 lines
214 B
TypeScript

/**
* 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;