1.5.1 • Published 2 years ago

@viness/di v1.5.1

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

2 years ago

1.5.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.0.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.4

2 years ago

0.1.0

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago