@logixjs/core
    Preparing search index...

    Interface ModuleImpl<Id, Sh, REnv>

    ModuleImpl: a concrete Module implementation unit (blueprint + initial state + mounted logics).

    • It's a "configured module" that can be consumed directly by React hooks or app composition.
    • It carries the Env dependency type R required by the implementation.
    interface ModuleImpl<Id extends string, Sh extends AnyModuleShape, REnv = any> {
        _tag: "ModuleImpl";
        layer: Layer<
            ModuleRuntime<Type<Sh["stateSchema"]>, Type<Sh["actionSchema"]>>,
            never,
            REnv,
        >;
        module: ModuleTagType<Id, Sh>;
        processes?: readonly Effect<void, any, any>[];
        stateTransaction?: ModuleImplementStateTransactionOptions;
        withLayer: (layer: Layer<any, never, any>) => ModuleImpl<Id, Sh, REnv>;
        withLayers: (
            ...layers: readonly Layer<any, never, any>[],
        ) => ModuleImpl<Id, Sh, REnv>;
    }

    Type Parameters

    Index

    Properties

    _tag: "ModuleImpl"
    layer: Layer<
        ModuleRuntime<Type<Sh["stateSchema"]>, Type<Sh["actionSchema"]>>,
        never,
        REnv,
    >
    module: ModuleTagType<Id, Sh>
    processes?: readonly Effect<void, any, any>[]
    stateTransaction?: ModuleImplementStateTransactionOptions
    withLayer: (layer: Layer<any, never, any>) => ModuleImpl<Id, Sh, REnv>
    withLayers: (
        ...layers: readonly Layer<any, never, any>[],
    ) => ModuleImpl<Id, Sh, REnv>