pure
    Preparing search index...

    Type Alias ErcRef<TName, TRepr>

    Weak reference to an externally ref-counted object.

    See makeErcType for how to use

    type ErcRef<TName, TRepr = number> = {
        getStrong: () => Erc<TName, TRepr>;
        type: TName;
        value: TRepr | undefined;
    }

    Type Parameters

    • TName
    • TRepr = number
    Index

    Properties

    Properties

    getStrong: () => Erc<TName, TRepr>

    Create a strong reference to the inner value, essentially incrementing the ref count.

    type: TName
    value: TRepr | undefined

    The underlying object representation.

    This may become undefined across async calls if the weak reference is invalidated