Skip to content

Commit

Permalink
fix(): Update module interface to nest 6.3.0 standard
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunnerLivio committed Jun 5, 2019
1 parent 5bcba6f commit 9748cc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/interfaces/terminus-module-options.interface.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Type } from '@nestjs/common';
import { ModuleMetadata } from '@nestjs/common/interfaces';
import { ModuleMetadata, Abstract } from '@nestjs/common/interfaces';
import { HealthIndicatorFunction } from './health-indicator.interface';
import { HealthCheckError } from '@godaddy/terminus';

Expand Down Expand Up @@ -76,5 +76,5 @@ export interface TerminusModuleAsyncOptions
/**
* The providers which should get injected
*/
inject?: any[];
inject?: (string | symbol | Function | Type<any> | Abstract<any>)[];
}
2 changes: 1 addition & 1 deletion lib/terminus-core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class TerminusCoreModule {
{
provide: options.useClass,
useClass: options.useClass,
inject: [options.inject || []],
inject: [...(options.inject || [])],
},
];
}
Expand Down

0 comments on commit 9748cc4

Please sign in to comment.