UNPKG

214 BTypeScriptView Raw
1/**
2 * A function that evaluates the action only once.
3 * @param action The action to be evaluated to get the result.
4 * Returns the evaluated result.
5 */
6export default function lazy<T>(action: () => T): () => T;