mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
lint(): fix linter issues, set callable types
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user