summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/matrix-js-sdk/lib/ReEmitter.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'includes/external/matrix/node_modules/matrix-js-sdk/lib/ReEmitter.d.ts')
-rw-r--r--includes/external/matrix/node_modules/matrix-js-sdk/lib/ReEmitter.d.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/includes/external/matrix/node_modules/matrix-js-sdk/lib/ReEmitter.d.ts b/includes/external/matrix/node_modules/matrix-js-sdk/lib/ReEmitter.d.ts
new file mode 100644
index 0000000..bed9f5a
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-js-sdk/lib/ReEmitter.d.ts
@@ -0,0 +1,16 @@
+/// <reference types="node" />
+import { EventEmitter } from "events";
+import { ListenerMap, TypedEventEmitter } from "./models/typed-event-emitter";
+export declare class ReEmitter {
+ private readonly target;
+ constructor(target: EventEmitter);
+ private reEmitters;
+ reEmit(source: EventEmitter, eventNames: string[]): void;
+ stopReEmitting(source: EventEmitter, eventNames: string[]): void;
+}
+export declare class TypedReEmitter<Events extends string, Arguments extends ListenerMap<Events>> extends ReEmitter {
+ constructor(target: TypedEventEmitter<Events, Arguments>);
+ reEmit<ReEmittedEvents extends string, T extends Events & ReEmittedEvents>(source: TypedEventEmitter<ReEmittedEvents, any>, eventNames: T[]): void;
+ stopReEmitting<ReEmittedEvents extends string, T extends Events & ReEmittedEvents>(source: TypedEventEmitter<ReEmittedEvents, any>, eventNames: T[]): void;
+}
+//# sourceMappingURL=ReEmitter.d.ts.map \ No newline at end of file