Skip to content

Commit eaa1d54

Browse files
committedJun 3, 2024·
fix: cast the nodemon function as Nodemon type
Fixes #2206
1 parent 789663c commit eaa1d54

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎index.d.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ export interface NodemonConfig {
118118
}
119119

120120
export interface NodemonSettings extends NodemonConfig {
121-
script: string;
121+
script: string;
122122
ext?: string; // "js,mjs" etc (should really support an array of strings, but I don't think it does right now)
123-
events?: { [key: string]: string };
123+
events?: { [key: string]: string };
124124
env?: { [key: string]: string };
125125
exec?: string; // node, python, etc
126126
execArgs?: string[]; // args passed to node, etc,
@@ -136,4 +136,6 @@ export interface WatchOptions {
136136
interval: number;
137137
}
138138

139-
export default function nodemon(settings: NodemonSettings): Nodemon;
139+
const nodemon: Nodemon = (settings: NodemonSettings): Nodemon => {};
140+
141+
export default nodemon;

0 commit comments

Comments
 (0)
Please sign in to comment.