mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
* Add xstream * Add bigi * Add uuid-js * Add user-home * Add strip-bom * Add strip-ansi * Add slug * Add safe-regex * Add react-recaptcha * Add is-absolute-url * Add is-archive * Add is-compressed * Add is-relative-url * add is-root-path * Add is-root * Add is-text-path * add os-homedir * Add os-tmpdir * Add path-is-absolute * Add pad * Add number-is-nan * Add node-hid * Add is-finite * is-path-incwd * Add indent-string * Add cpy * Add camelcase-keys * Add blacklist * add http-codes * clamp-js * Add checkstyle-formatter * Add currency-formatter * Add multi-typeof * Add intl-messageformat * Add coinstring * Add ecurve * Add bitcoinjs-lib * Add deep-freeze * Add fuxxaldrin * Add react-body-classname * Add react-highlight-words * Update headers * Fix lint errors * remove xstream * Code review comments * Remove clamp-js in favour of https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13527
52 lines
1.2 KiB
TypeScript
52 lines
1.2 KiB
TypeScript
// Type definitions for intl-messageformat 1.3
|
|
// Project: https://github.com/yahoo/intl-messageformat
|
|
// Definitions by: Mohamed Hegazy <https://github.com/mhegazy>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = IntlMessageFormat;
|
|
export as namespace IntlMessageFormat;
|
|
|
|
interface DateFormat {
|
|
day: string;
|
|
month: string;
|
|
weekday: string;
|
|
year: string;
|
|
}
|
|
|
|
interface TimeFormat {
|
|
hour: string;
|
|
minute: string;
|
|
second: string;
|
|
timeZoneName: string;
|
|
}
|
|
|
|
declare class IntlMessageFormat {
|
|
constructor(message: string, locales: string | string[], formats?: any);
|
|
resolvedOptions(): { locale: string };
|
|
format(arg: any): string;
|
|
static default: any;
|
|
static defaultLocale: string;
|
|
static formats: {
|
|
date: {
|
|
full: DateFormat;
|
|
long: DateFormat;
|
|
medium: DateFormat;
|
|
short: DateFormat;
|
|
};
|
|
number: {
|
|
currency: {
|
|
style: string;
|
|
};
|
|
percent: {
|
|
style: string;
|
|
};
|
|
};
|
|
time: {
|
|
full: TimeFormat;
|
|
long: TimeFormat;
|
|
medium: TimeFormat;
|
|
short: TimeFormat;
|
|
};
|
|
};
|
|
}
|