Skip to content

Commit c264124

Browse files
committed
style: code
1 parent 1773177 commit c264124

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

sample/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": "../tsconfig.json",
3-
"include": ["**/*.spec.ts"],
3+
"include": ["./"],
44
"exclude": ["node_modules", "dist"],
55
}

sample/use-with-ark.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { resolve } from 'path';
22

33
import { Injectable, Module } from '@nestjs/common';
44
import { ApolloClientBuilder } from '@vodyani/apollo-client';
5-
import { ArkModule, ConfigProvider, JSONConfigLoader } from '@vodyani/ark';
5+
import { ArkModule, ArkManager, ConfigProvider, JSONConfigLoader } from '@vodyani/ark';
6+
import { AsyncInject } from '@vodyani/core';
67

78
@Module({
89
imports: [
@@ -34,9 +35,10 @@ import { ArkModule, ConfigProvider, JSONConfigLoader } from '@vodyani/ark';
3435
export class AppModule {}
3536

3637
// Usage in the other provider
37-
@Injectable
38+
@Injectable()
3839
class Logger {
3940
constructor(
41+
@AsyncInject(ArkManager)
4042
private readonly config: ConfigProvider,
4143
) {}
4244

0 commit comments

Comments
 (0)