0.2.4 • Published 6 years ago

egg-typed-di v0.2.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 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

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago