Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/node_modules/@types/node/events.d.ts')
-rw-r--r--assets/node_modules/@types/node/events.d.ts50
1 files changed, 0 insertions, 50 deletions
diff --git a/assets/node_modules/@types/node/events.d.ts b/assets/node_modules/@types/node/events.d.ts
deleted file mode 100644
index b07defc..0000000
--- a/assets/node_modules/@types/node/events.d.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-declare module "events" {
- interface EventEmitterOptions {
- /**
- * Enables automatic capturing of promise rejection.
- */
- captureRejections?: boolean;
- }
-
- interface NodeEventTarget {
- once(event: string | symbol, listener: (...args: any[]) => void): this;
- }
-
- interface DOMEventTarget {
- addEventListener(event: string, listener: (...args: any[]) => void, opts?: { once: boolean }): any;
- }
-
- namespace EventEmitter {
- function once(emitter: NodeEventTarget, event: string | symbol): Promise<any[]>;
- function once(emitter: DOMEventTarget, event: string): Promise<any[]>;
- function on(emitter: EventEmitter, event: string): AsyncIterableIterator<any>;
- const captureRejectionSymbol: unique symbol;
-
- /**
- * This symbol shall be used to install a listener for only monitoring `'error'`
- * events. Listeners installed using this symbol are called before the regular
- * `'error'` listeners are called.
- *
- * Installing a listener using this symbol does not change the behavior once an
- * `'error'` event is emitted, therefore the process will still crash if no
- * regular `'error'` listener is installed.
- */
- const errorMonitor: unique symbol;
- /**
- * Sets or gets the default captureRejection value for all emitters.
- */
- let captureRejections: boolean;
-
- interface EventEmitter extends NodeJS.EventEmitter {
- }
-
- class EventEmitter {
- constructor(options?: EventEmitterOptions);
- /** @deprecated since v4.0.0 */
- static listenerCount(emitter: EventEmitter, event: string | symbol): number;
- static defaultMaxListeners: number;
- }
- }
-
- export = EventEmitter;
-}