JSPM

  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q50464F
  • License MIT

Dependency injection framework

Package Exports

  • @makerdao/services-core

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@makerdao/services-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@makerdao/services-core

A dependency injection framework extracted from dai.js.

TODO

Usage (TODO)

class MyService extends PrivateService {
  constructor(name = 'serviceRoleName') {
    super(name, dependencyRoleNames);
  }

  initialize(settings) {
    // initialize() for all its dependencies will run first
  }

  connect() {
    // connect() for all its dependencies will run first
  }

  authenticate() {
    // authenticate() for all its dependencies will run first
  }
}