summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-02-21 13:21:51 -0500
committerGitHub <noreply@github.com>2020-02-21 13:21:51 -0500
commitbd640bc7e6a946dec4477afc64d8083e372660f6 (patch)
treecb08b999ad594dc0796fa1fefc588c0b86083066 /cli/js/lib.deno.ns.d.ts
parent754b8c65ad5adda2961c667a6b64ab59c130111d (diff)
feat: Deno.fsEvents() (#3452)
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r--cli/js/lib.deno.ns.d.ts15
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