mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-10 22:44:43 +08:00
fix locales
This commit is contained in:
12
xdate/xdate.d.ts
vendored
12
xdate/xdate.d.ts
vendored
@@ -12,6 +12,16 @@ interface formatters_info
|
||||
vvv?: (xdate : XDate , useutc : boolean ) => string;
|
||||
}
|
||||
|
||||
interface locale_detail
|
||||
{
|
||||
monthNames? : string [];
|
||||
monthNamesShort?: string [];
|
||||
dayNames?: string[];
|
||||
dayNamesShort?: string [];
|
||||
amDesignator?: string;
|
||||
pmDesignator?: string;
|
||||
}
|
||||
|
||||
|
||||
declare class XDate {
|
||||
|
||||
@@ -354,7 +364,7 @@ declare class XDate {
|
||||
public static UTC(year : number , month : number , date : number , hours : number,
|
||||
minutes : number , seconds : number , milliseconds : number ) : XDate;
|
||||
|
||||
public static locales : Object;
|
||||
public static locales : { [key: string]: locale_detail; };
|
||||
|
||||
public static defaultLocale : string;
|
||||
public static formatters : formatters_info;
|
||||
|
||||
Reference in New Issue
Block a user