iya-sts
    Preparing search index...

    Stand-ins for packages that are required the first time they are used.

    Index
    • Returns a stand-in for a module that requires it on the first property read and forwards every read to it after that.

      Type Parameters

      • T extends object

      Parameters

      • what: string

        the module's name, for the log and the error

      • load: () => T

        requires the module; called at most once, successfully

      • log: LazyLog

        the caller's logger

      Returns T

      the stand-in, typed as the module

      the load's own error, on the read that triggered a failed load