mirror of
https://github.com/denoland/deno.git
synced 2025-08-02 10:02:23 +00:00
feat: Deno.fsEvents() (#3452)
This commit is contained in:
parent
754b8c65ad
commit
bd640bc7e6
12 changed files with 1355 additions and 943 deletions
15
cli/js/lib.deno.ns.d.ts
vendored
15
cli/js/lib.deno.ns.d.ts
vendored
|
@ -1620,6 +1620,21 @@ declare namespace Deno {
|
|||
*/
|
||||
export function resources(): ResourceMap;
|
||||
|
||||
/** UNSTABLE: new API. Needs docs. */
|
||||
export interface FsEvent {
|
||||
kind: "any" | "access" | "create" | "modify" | "remove";
|
||||
paths: string[];
|
||||
}
|
||||
|
||||
/** UNSTABLE: new API. Needs docs.
|
||||
*
|
||||
* recursive option is true by default.
|
||||
*/
|
||||
export function fsEvents(
|
||||
paths: string | string[],
|
||||
options?: { recursive: boolean }
|
||||
): AsyncIterableIterator<FsEvent>;
|
||||
|
||||
/** How to handle subprocess stdio.
|
||||
*
|
||||
* "inherit" The default if unspecified. The child inherits from the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue