mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
[component-emitter] Provide easy access to interface (#24994)
* provide easy access to interface * declare is not needed
This commit is contained in:
committed by
Mohamed Hegazy
parent
ffbf344eb0
commit
3a647d4f0e
4
types/component-emitter/index.d.ts
vendored
4
types/component-emitter/index.d.ts
vendored
@@ -13,9 +13,9 @@ interface Emitter {
|
||||
hasListeners(event: string): boolean;
|
||||
}
|
||||
|
||||
declare const constructor: {
|
||||
declare const Emitter: {
|
||||
(obj?: any): Emitter;
|
||||
new (obj?: any): Emitter;
|
||||
};
|
||||
|
||||
export = constructor;
|
||||
export = Emitter;
|
||||
|
||||
Reference in New Issue
Block a user