summaryrefslogtreecommitdiff
path: root/includes/external/chvfs/node_modules/node-watch/lib/watch.d.ts
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-02 16:31:02 +0200
committerRaindropsSys <contact@minteck.org>2023-06-02 16:31:02 +0200
commit48afc99d05c7bcd54231f340635f5102a03fbda4 (patch)
treebdad312490ee42b84dde71d5c49266f1b7fc792e /includes/external/chvfs/node_modules/node-watch/lib/watch.d.ts
parent82ef2e6f4fadb6ed721a0de79ec4d2fcfdc3f426 (diff)
downloadpluralconnect-48afc99d05c7bcd54231f340635f5102a03fbda4.tar.gz
pluralconnect-48afc99d05c7bcd54231f340635f5102a03fbda4.tar.bz2
pluralconnect-48afc99d05c7bcd54231f340635f5102a03fbda4.zip
Updated 7 files, added error.php and deleted 39 files (automated)
Diffstat (limited to 'includes/external/chvfs/node_modules/node-watch/lib/watch.d.ts')
-rw-r--r--includes/external/chvfs/node_modules/node-watch/lib/watch.d.ts75
1 files changed, 0 insertions, 75 deletions
diff --git a/includes/external/chvfs/node_modules/node-watch/lib/watch.d.ts b/includes/external/chvfs/node_modules/node-watch/lib/watch.d.ts
deleted file mode 100644
index 9eca5d4..0000000
--- a/includes/external/chvfs/node_modules/node-watch/lib/watch.d.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-import { FSWatcher } from 'fs';
-
-/**
- * Watch for changes on `filename`, where filename is either a file or a directory.
- * The second argument is optional.
- *
- * If `options` is provided as a string, it specifies the encoding.
- * Otherwise `options` should be passed as an object.
- *
- * The listener callback gets two arguments, `(eventType, filePath)`,
- * which is the same with `fs.watch`.
- * `eventType` is either `update` or `remove`,
- * `filePath` is the name of the file which triggered the event.
- *
- * @param {Filename} filename File or directory to watch.
- * @param {Options|string} options
- * @param {Function} callback
- */
-declare function watch(pathName: PathName): Watcher;
-declare function watch(pathName: PathName, options: Options) : Watcher;
-declare function watch(pathName: PathName, callback: Callback): Watcher;
-declare function watch(pathName: PathName, options: Options, callback: Callback): Watcher;
-
-type EventType = 'update' | 'remove';
-type Callback = (eventType: EventType, filePath: string) => any;
-type PathName = string | Array<string>;
-type FilterReturn = boolean | symbol;
-
-type Options = {
- /**
- * Indicates whether the process should continue to run
- * as long as files are being watched.
- * @default true
- */
- persistent ?: boolean;
-
- /**
- * Indicates whether all subdirectories should be watched.
- * @default false
- */
- recursive ?: boolean;
-
- /**
- * Specifies the character encoding to be used for the filename
- * passed to the listener.
- * @default 'utf8'
- */
- encoding ?: string;
-
- /**
- * Only files which pass this filter (when it returns `true`)
- * will be sent to the listener.
- */
- filter ?: RegExp | ((file: string, skip: symbol) => FilterReturn);
-
- /**
- * Delay time of the callback function.
- * @default 200
- */
- delay ?: number;
-};
-
-declare interface Watcher extends FSWatcher {
- /**
- * Returns `true` if the watcher has been closed.
- */
- isClosed(): boolean;
-
- /**
- * Returns all watched paths.
- */
- getWatchedPaths(): Array<string>;
-}
-
-export default watch;