mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
36 lines
826 B
TypeScript
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;
|
|
}
|