Function Lazy

  • Decorator that memoizes the computed value of a getter or nullary method.

    Type Parameters

    • F extends (() => unknown)

    Parameters

    • target: F
    • Optional context: ClassMethodDecoratorContext<ThisParameterType<F>, F>

    Returns F

  • Decorator that memoizes the computed value of a getter or nullary method.

    Type Parameters

    • T

    • R

    Parameters

    • target: ((this) => R)
        • (this): R
        • Parameters

          • this: T

          Returns R

    • Optional context: ClassGetterDecoratorContext<T, R>

    Returns ((this) => R)

      • (this): R
      • Parameters

        • this: T

        Returns R

Generated using TypeDoc