lint(): fix linter issues, set callable types

This commit is contained in:
Kamil Myśliwiec
2019-03-15 17:17:16 +01:00
parent 98cea88f32
commit 14768044e9
3 changed files with 3 additions and 6 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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,