mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix: rename
watch event missing (#24893)
This PR ensures that we forward a `rename` event in our file watcher. The rust lib we use combines that with the `modify` event. This fixes a compatibility issue with Node too, which sends the `rename` event as well. Fixes https://github.com/denoland/deno/issues/24880
This commit is contained in:
parent
59c9bd0800
commit
9d6da1036d
4 changed files with 38 additions and 2 deletions
9
cli/tsc/dts/lib.deno.ns.d.ts
vendored
9
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -4149,7 +4149,14 @@ declare namespace Deno {
|
|||
* @category File System */
|
||||
export interface FsEvent {
|
||||
/** The kind/type of the file system event. */
|
||||
kind: "any" | "access" | "create" | "modify" | "remove" | "other";
|
||||
kind:
|
||||
| "any"
|
||||
| "access"
|
||||
| "create"
|
||||
| "modify"
|
||||
| "rename"
|
||||
| "remove"
|
||||
| "other";
|
||||
/** An array of paths that are associated with the file system event. */
|
||||
paths: string[];
|
||||
/** Any additional flags associated with the event. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue