forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cldr.js-event.d.ts
24 lines (20 loc) · 871 Bytes
/
cldr.js-event.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Type definitions for Cldr.js 0.4.4
// Project: https://github.com/rxaviers/cldrjs
// Definitions by: Raman But-Husaim <https://github.com/RamanBut-Husaim>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// The definition file for event module.
declare namespace cldr {
interface CldrStatic {
on(event:string, listener:(path:string, value:any) => void): void;
once(event:string, listener:(path:string, value:any) => void): void;
off(event:string, listener:(path:string, value:any) => void): void;
}
interface CldrFactory {
on(event:string, listener:(path:string, value:any) => void): void;
once(event:string, listener:(path:string, value:any) => void): void;
off(event:string, listener:(path:string, value:any) => void): void;
}
}
declare module "cldr/event" {
export = cldr;
}