From b0440f0fed842657cb9f98039e3745b750f94976 Mon Sep 17 00:00:00 2001 From: "Dido (Christoph Poelt)" Date: Tue, 17 Sep 2024 14:06:14 +0200 Subject: [PATCH] add missing ignore option to type defintion of config --- index.d.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/index.d.ts b/index.d.ts index d56c0532..6109a5d5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -19,7 +19,7 @@ export type NodemonEventListener = { on(event: 'exit', listener: (e?: NodemonEventExit) => void): Nodemon; on( event: 'config:update', - listener: (e?: NodemonEventConfig) => void + listener: (e?: NodemonEventConfig) => void, ): Nodemon; }; @@ -32,30 +32,30 @@ export type Nodemon = { on(event: 'exit', listener: (e?: NodemonEventExit) => void): Nodemon; on( event: 'config:update', - listener: (e?: NodemonEventConfig) => void + listener: (e?: NodemonEventConfig) => void, ): Nodemon; // this is repeated because VS Code doesn't autocomplete otherwise addEventListener(event: 'start' | 'crash', listener: () => void): Nodemon; addEventListener( event: 'log', - listener: (e: NodemonEventLog) => void + listener: (e: NodemonEventLog) => void, ): Nodemon; addEventListener( event: 'restart', - listener: (e?: NodemonEventRestart) => void + listener: (e?: NodemonEventRestart) => void, ): Nodemon; addEventListener( event: 'quit', - listener: (e?: NodemonEventQuit) => void + listener: (e?: NodemonEventQuit) => void, ): Nodemon; addEventListener( event: 'exit', - listener: (e?: NodemonEventExit) => void + listener: (e?: NodemonEventExit) => void, ): Nodemon; addEventListener( event: 'config:update', - listener: (e?: NodemonEventConfig) => void + listener: (e?: NodemonEventConfig) => void, ): Nodemon; once(event: 'start' | 'crash', listener: () => void): Nodemon; @@ -65,7 +65,7 @@ export type Nodemon = { once(event: 'exit', listener: (e?: NodemonEventExit) => void): Nodemon; once( event: 'config:update', - listener: (e?: NodemonEventConfig) => void + listener: (e?: NodemonEventConfig) => void, ): Nodemon; removeAllListeners(event: NodemonEventHandler): Nodemon; @@ -109,6 +109,7 @@ export interface NodemonConfig { execMap?: { [key: string]: string }; ignoreRoot?: string[]; watch?: string[]; + ignore?: string[]; stdin?: boolean; runOnChangeOnly?: boolean; verbose?: boolean;