Skip to content

Commit d214cf1

Browse files
GoodluckhfKonstantin Bubyakin
authored andcommitted
feat: Описал интерфейс провайдера
1 parent 6442466 commit d214cf1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/provider.interface.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { ClassType, DependencyType } from './internal-types';
2+
3+
export interface ProviderInterface {
4+
token: string;
5+
6+
isPublic?: boolean;
7+
8+
autoFactory?: boolean;
9+
10+
/**
11+
* Arguments of constructor
12+
*/
13+
dependencies?: DependencyType[];
14+
15+
/**
16+
* Provide by class
17+
*/
18+
useClass?: ClassType;
19+
20+
/**
21+
* provide by constant
22+
*/
23+
useValue?: any;
24+
25+
/**
26+
* provide dynamic value
27+
*/
28+
useFactory?: (...any) => any;
29+
}

0 commit comments

Comments
 (0)