mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-09-25 02:20:25 +00:00
Globalize definition for NuGet package v0.1.3.
This commit is contained in:
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
// Type definitions for Globalize v?.? NuGet package v0.1.3
|
||||
// Project: https://github.com/jquery/globalize
|
||||
// Definitions by: Aram Taieb <https://github.com/afromogli/>
|
||||
// Definitions: https://github.com/afromogli/DefinitelyTyped
|
||||
|
||||
interface GlobalizeStatic {
|
||||
addCultureInfo(cultureName: string, baseCultureName: string, info: any): void;
|
||||
findClosestCulture(name: string): any;
|
||||
format(value: any, format: string): string;
|
||||
format(value: any, format: string, cultureSelector: string): string;
|
||||
localize(key: string): string;
|
||||
localize(key: string, cultureSelector: string): string;
|
||||
parseDate(value: any): Date;
|
||||
parseDate(value: any, formats: any): Date;
|
||||
parseDate(value: any, formats: any, culture: string): Date;
|
||||
parseInt(value: any): number;
|
||||
parseInt(value: any, radix: number): number;
|
||||
parseInt(value: any, radix: number, cultureSelector: string): number;
|
||||
parseFloat(value: any): number;
|
||||
parseFloat(value: any, radix: number): number;
|
||||
parseFloat(value: any, radix: number, cultureSelector: string): number;
|
||||
culture(cultureSelector: string): any;
|
||||
}
|
||||
|
||||
declare var Globalize: GlobalizeStatic;
|
||||
Reference in New Issue
Block a user