diff options
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 1839c813a..39303677a 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -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 |