Type alias MeiosisComponent<S>

MeiosisComponent<S>: {
    initial?: Partial<S>;
    nested?: NestedComponents<S>;
    services?: Service<S>[];
    view?: ((cell: MeiosisCell<S>, ...args: any[]) => any);
}

A Meiosis component has (all of which are optional) initial state, services, and nested components.

Type Parameters

  • S

    the State type.

Type declaration

  • Optional initial?: Partial<S>

    Initial state.

  • Optional nested?: NestedComponents<S>

    Nested components.

  • Optional services?: Service<S>[]

    An array of service functions.

  • Optional view?: ((cell: MeiosisCell<S>, ...args: any[]) => any)
      • (cell: MeiosisCell<S>, ...args: any[]): any
      • Component view.

        Parameters

        Returns any

Generated using TypeDoc