0.2.4 • Published 7 years ago

egg-typed-di v0.2.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

egg-typed-di

Quick overview

Service

import { Service, serviceMetadata, Context } from 'egg-typed';

@context()
export class TestService extends Service {
  get(id: string | number) {
    return {
      id,
      name: this.app.config.test + '_' + id,
    };
  }
}

export class Controller {
  private testService: TestService;
  
}
0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago