diff --git a/lib/watch.d.ts b/lib/watch.d.ts index fb214e5..9eca5d4 100644 --- a/lib/watch.d.ts +++ b/lib/watch.d.ts @@ -22,7 +22,7 @@ declare function watch(pathName: PathName, callback: Callback): Watcher; declare function watch(pathName: PathName, options: Options, callback: Callback): Watcher; type EventType = 'update' | 'remove'; -type Callback = (eventType ?: EventType, filePath ?: string) => any; +type Callback = (eventType: EventType, filePath: string) => any; type PathName = string | Array; type FilterReturn = boolean | symbol;