cldr.js-supplemental.d.ts 794 B

123456789101112131415161718192021222324252627282930313233
  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 supplemental module.
  6. declare namespace cldr {
  7. interface TimeDataStatic {
  8. allowed(): string;
  9. preferred(): string;
  10. }
  11. interface WeekDataStatic {
  12. firstDay(): string;
  13. minDays(): number;
  14. }
  15. interface SupplementalStatic {
  16. timeData: TimeDataStatic;
  17. weekData: WeekDataStatic;
  18. (path: string): any;
  19. (paths: string[]): any;
  20. }
  21. interface CldrStatic {
  22. supplemental: SupplementalStatic;
  23. }
  24. }
  25. declare module "cldr/supplemental" {
  26. export = cldr;
  27. }