Function createModule

  • Creates a new module class type from which you can extend.

    name: The lowercase alphanumeric module name. This is used in the configuration system. Choose a short unique name for best usability. If you don't have any configuration or if you want that your configuration options are available without prefix, you can keep this undefined.

    class MyModule extends createModule({}) {}

    //and used like this
    new App({
    imports: [new MyModule]
    });

    Type Parameters

    Parameters

    • options: T
    • name: string = ''

    Returns AppModuleClass<ExtractClassType<T["config"]>>

Generated using TypeDoc