Skip to content

Commit

Permalink
fix: cast the nodemon function as Nodemon type
Browse files Browse the repository at this point in the history
Fixes #2206
  • Loading branch information
remy committed Jun 3, 2024
1 parent 789663c commit eaa1d54
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ export interface NodemonConfig {
}

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

export default function nodemon(settings: NodemonSettings): Nodemon;
const nodemon: Nodemon = (settings: NodemonSettings): Nodemon => {};

export default nodemon;

0 comments on commit eaa1d54

Please sign in to comment.