mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Watch events enhancements (#57950)
This commit is contained in:
@@ -1849,13 +1849,13 @@ export interface CloseRequest extends FileRequest {
|
||||
|
||||
export interface WatchChangeRequest extends Request {
|
||||
command: CommandTypes.WatchChange;
|
||||
arguments: WatchChangeRequestArgs;
|
||||
arguments: WatchChangeRequestArgs | readonly WatchChangeRequestArgs[];
|
||||
}
|
||||
|
||||
export interface WatchChangeRequestArgs {
|
||||
id: number;
|
||||
path: string;
|
||||
eventType: "create" | "delete" | "update";
|
||||
created?: string[];
|
||||
deleted?: string[];
|
||||
updated?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2656,6 +2656,7 @@ export interface CreateDirectoryWatcherEventBody {
|
||||
readonly id: number;
|
||||
readonly path: string;
|
||||
readonly recursive: boolean;
|
||||
readonly ignoreUpdate?: boolean;
|
||||
}
|
||||
|
||||
export type CloseFileWatcherEventName = "closeFileWatcher";
|
||||
|
||||
Reference in New Issue
Block a user