Comparing version 4.0.2 to 4.0.3
@@ -37,4 +37,5 @@ /*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */ | ||
export type ThrottleType = 'readdir' | 'watch' | 'add' | 'remove' | 'change'; | ||
export type EmitArgs = [Path | Error, Stats?]; | ||
export type EmitArgsWithName = [EventName, ...EmitArgs]; | ||
export type EmitArgs = [path: Path, stats?: Stats]; | ||
export type EmitErrorArgs = [error: Error, stats?: Stats]; | ||
export type EmitArgsWithName = [event: EventName, ...EmitArgs]; | ||
export type MatchFunction = (val: string, stats?: Stats) => boolean; | ||
@@ -77,3 +78,3 @@ export interface MatcherObject { | ||
[EV.ERROR]: Parameters<WatchHandlers['errHandler']>; | ||
[EV.ALL]: [EventName, ...EmitArgs]; | ||
[EV.ALL]: [event: EventName, ...EmitArgs]; | ||
} | ||
@@ -80,0 +81,0 @@ export type FSWatcherEventMap = FSWatcherKnownEventMap & { |
@@ -37,4 +37,5 @@ /*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */ | ||
export type ThrottleType = 'readdir' | 'watch' | 'add' | 'remove' | 'change'; | ||
export type EmitArgs = [Path | Error, Stats?]; | ||
export type EmitArgsWithName = [EventName, ...EmitArgs]; | ||
export type EmitArgs = [path: Path, stats?: Stats]; | ||
export type EmitErrorArgs = [error: Error, stats?: Stats]; | ||
export type EmitArgsWithName = [event: EventName, ...EmitArgs]; | ||
export type MatchFunction = (val: string, stats?: Stats) => boolean; | ||
@@ -77,3 +78,3 @@ export interface MatcherObject { | ||
[EV.ERROR]: Parameters<WatchHandlers['errHandler']>; | ||
[EV.ALL]: [EventName, ...EmitArgs]; | ||
[EV.ALL]: [event: EventName, ...EmitArgs]; | ||
} | ||
@@ -80,0 +81,0 @@ export type FSWatcherEventMap = FSWatcherKnownEventMap & { |
{ | ||
"name": "chokidar", | ||
"description": "Minimal and efficient cross-platform file watching library", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"homepage": "https://github.com/paulmillr/chokidar", | ||
@@ -6,0 +6,0 @@ "author": "Paul Miller (https://paulmillr.com)", |
148759
3476