Socket
Book a DemoInstallSign in
Socket

egg-typed-di

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-typed-di

typed for egg.

latest
Source
npmnpm
Version
0.2.4
Version published
Maintainers
1
Created
Source

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

Keywords

ts

FAQs

Package last updated on 29 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts