@makerdao/services-core
    TypeScript icon, indicating that this package has built-in type declarations

    0.11.4 • Public • Published

    @makerdao/services-core

    A dependency injection framework used in dai.js.

    TODO

    • [ ] create full usage example

    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
      }
    }

    Keywords

    none

    Install

    npm i @makerdao/services-core

    DownloadsWeekly Downloads

    497

    Version

    0.11.4

    License

    MIT

    Unpacked Size

    525 kB

    Total Files

    11

    Last publish

    Collaborators

    • rafinskipg
    • adamgoth
    • b-pmcg
    • krzkaczor
    • tyler17