Skip to content

Commit

Permalink
lint(): fix linter issues, set callable types
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Mar 15, 2019
1 parent 98cea88 commit 1476804
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/common/utils/merge-with-values.util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
export interface Constructor<T> {
new (...args: any[]): T;
}
export type Constructor<T> = new (...args: any[]) => T;

export const MergeWithValues = <T extends Constructor<{}>>(data: {
[param: string]: any;
Expand Down
4 changes: 1 addition & 3 deletions packages/core/nest-application-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ export class NestApplicationContext implements INestApplicationContext {
.trim(),
)
// filter out the signals which is already listening to
.filter(
(signal: string) => !this.activeShutdownSignals.includes(signal),
) as string[];
.filter(signal => !this.activeShutdownSignals.includes(signal));

this.listenToShutdownSignals(signals);
return this;
Expand Down
1 change: 1 addition & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"no-implicit-dependencies": false,
"no-unnecessary-initializer": false,
"unified-signatures": false,
"callable-types": false,
"max-line-length": [150],
"member-ordering": [false],
"curly": false,
Expand Down

0 comments on commit 1476804

Please sign in to comment.