cldr.js-event.d.ts 895 B

123456789101112131415161718192021222324
  1. // Type definitions for Cldr.js 0.4.4
  2. // Project: https://github.com/rxaviers/cldrjs
  3. // Definitions by: Raman But-Husaim <https://github.com/RamanBut-Husaim>
  4. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
  5. // The definition file for event module.
  6. declare namespace cldr {
  7. interface CldrStatic {
  8. on(event: string, listener: (path: string, value: any) => void): void;
  9. once(event: string, listener: (path: string, value: any) => void): void;
  10. off(event: string, listener: (path: string, value: any) => void): void;
  11. }
  12. interface CldrFactory {
  13. on(event: string, listener: (path: string, value: any) => void): void;
  14. once(event: string, listener: (path: string, value: any) => void): void;
  15. off(event: string, listener: (path: string, value: any) => void): void;
  16. }
  17. }
  18. declare module "cldr/event" {
  19. export = cldr;
  20. }