iya-sts
    Preparing search index...

    Variable keyed

    keyed: (
        factory: any,
        onLookup: any,
    ) => { existing(): Map<any, any>; of(id: any): any; (): any } = keyed

    Type Declaration

      • (
            factory: any,
            onLookup: any,
        ): { existing(): Map<any, any>; of(id: any): any; (): any }
      • Builds a per-realm value lazily, one per realm, purged with the realm.

        Parameters

        • factory: any

          called with the realm record to make its value

        • onLookup: any

          optional; called with whether each lookup found a value

        Returns { existing(): Map<any, any>; of(id: any): any; (): any }

        a function answering the ambient realm's value, with of(id) for a named realm and existing() for the underlying Map