0.4.0 • Published 3 months ago

@armscye/module v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@armscye/module

A collection of shared standard TypeScript definitions (@module).

Installation

Using npm:

npm install --save-dev @armscye/module

or using yarn:

yarn add @armscye/module --dev

Reference

Module Interface

Provides a standardized way to register module configurations and integrate with the larger system.

interface Module {
  /**
   * Register configurations.
   */
  register(): any;
}

The register method is a key part of the Module interface. It's responsible for registering configurations such as dependencies.

Usage notes

Here's a basic example demonstrating how a module might register configurations:

class MyModule implements Module {
  register() {
    providers: [
      { provide: 'config', useValue: { name: 'My App', version: '1.0.0' } },
    ];
  }
}

License

This project is licensed under the MIT license.

See LICENSE for more information.

0.4.0

3 months ago

0.3.0

3 months ago

0.2.0

6 months ago

0.1.1

9 months ago

0.1.0

10 months ago