Endo
    Preparing search index...

    Type Alias KitContext<S, F>

    The this context for methods of a multi-facet exo kit (defineExoClassKit).

    • this.state — the sealed object returned by init(). S is ReturnType<init>, typically a plain object.
    • this.facets — the record of all facet instances in this cohort, keyed by facet name. Use this.facets.myFacet to access sibling facets.

    No this.self on kits. A kit method belongs to one facet, and there is no single "self" — instead, each facet is a separate remotable object. Use this.facets.foo to get the specific facet you need. For single-facet exos, see ClassContext which provides this.self.

    type KitContext<S = any, F extends Record<string, Methods> = any> = {
        facets: F;
        state: S;
    }

    Type Parameters

    • S = any
    • F extends Record<string, Methods> = any
    Index

    Properties

    Properties

    facets: F
    state: S