• Preparing search index...
  • The search index is not available
Silvertree API
  • Silvertree API
  • @silvertree/core
  • configureModule

Function configureModule

  • configureModule<M, Cfg, C, MP>(module, configure, options?): TConfiguredModuleTerm<M, C, MP | null, Cfg>
  • Create a configured module term.

    Type Parameters

    • M extends Module<any>
    • Cfg = M extends Module<C>
          ? C
          : any
    • C extends Container = Container
    • MP extends Module<any> = Module<any>

    Parameters

    • module: TClassConstructor<M>
    • configure: ((container, parentMod) => Cfg | Promise<Cfg>)
        • (container, parentMod): Cfg | Promise<Cfg>
        • Parameters

          • container: C
          • parentMod: null | MP

          Returns Cfg | Promise<Cfg>

    • Optional options: {
          strict?: boolean;
      }

      if strict is true (by default), error will be thrown if the module already registered

      • Optional strict?: boolean

    Returns TConfiguredModuleTerm<M, C, MP | null, Cfg>

    • Defined in packages/core/src/util/keys.ts:87

Settings

Member Visibility

Theme

Silvertree API
  • Loading...

Generated using TypeDoc