1.5.1 • Published 4 months ago

@viness/di v1.5.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

@viness/di

A lightweight di framework base on vscode instantiation.

Installation

npm install --save @viness/core

Get Start

import { Container, createDecorator } from '@viness/core'

const container = new Container();

const ITestService = createDecorator('ITestService')

interface ITestService {
    hello(): void
}

class TestService implements ITestService {
    hello(): void {
        console.log('hello world');
    }
}

container.register(ITestService, TestService)

Todo

  • support initialize mult-isntances of a service
  • support complex hierarchical DI systems: one container can have multiple parents or children
1.5.1

4 months ago

1.5.0

4 months ago

1.3.0

5 months ago

1.2.0

5 months ago

1.0.2

7 months ago

0.2.1

7 months ago

0.2.0

8 months ago

0.2.3

7 months ago

0.2.2

7 months ago

0.2.4

7 months ago

0.1.0

11 months ago

0.0.7

11 months ago

0.0.6

12 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago