Class Lazy<T>

Type Parameters

  • T

Implements

  • ILazy<T>

Constructors

Properties

Methods

Constructors

  • Type Parameters

    • T

    Parameters

    • fn: (() => T)
        • (): T
        • Returns T

    Returns Lazy<T>

Properties

fn: (() => T)

Type declaration

    • (): T
    • Returns T

value: typeof NOT_COMPUTED | T = NOT_COMPUTED

Methods

  • Returns T

  • Type Parameters

    • E extends Error

    Returns Result<T, E>