Files
DefinitelyTyped/cldrjs/cldr.js-supplemental.d.ts

36 lines
826 B
TypeScript

// 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 supplemental module.
import * as cldr from "cldrjs";
declare module "cldrjs" {
interface TimeDataStatic {
allowed(): string;
preferred(): string;
}
interface WeekDataStatic {
firstDay(): string;
minDays(): number;
}
interface SupplementalStatic {
timeData: TimeDataStatic;
weekData: WeekDataStatic;
(path:string): any;
(paths:string[]): any;
}
interface CldrStatic {
supplemental: SupplementalStatic;
}
}
declare module "cldr/supplemental" {
export = cldr;
}