mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-17 00:51:07 +08:00
refactor(Globalization):
This commit is contained in:
parent
31ec643126
commit
be3c579c49
@ -1,4 +1,4 @@
|
|||||||
import {Plugin, Cordova} from './plugin';
|
import { Cordova, Plugin } from './plugin';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Globalization
|
* @name Globalization
|
||||||
@ -40,7 +40,7 @@ export class Globalization {
|
|||||||
*/
|
*/
|
||||||
@Cordova({
|
@Cordova({
|
||||||
successIndex: 1,
|
successIndex: 1,
|
||||||
errorIndex: 2
|
errorIndex 2
|
||||||
})
|
})
|
||||||
static dateToString(date: Date, options: {formatLength: string, selector: string}): Promise<{value: string}> { return; }
|
static dateToString(date: Date, options: {formatLength: string, selector: string}): Promise<{value: string}> { return; }
|
||||||
|
|
||||||
@ -55,7 +55,6 @@ export class Globalization {
|
|||||||
})
|
})
|
||||||
static stringToDate(dateString: string, options: {formatLength: string, selector: string}): Promise<{year: number, month: number, day: number, hour: number, minute: number, second: number, millisecond: number}> { return; }
|
static stringToDate(dateString: string, options: {formatLength: string, selector: string}): Promise<{year: number, month: number, day: number, hour: number, minute: number, second: number, millisecond: number}> { return; }
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param options
|
* @param options
|
||||||
@ -65,7 +64,6 @@ export class Globalization {
|
|||||||
})
|
})
|
||||||
static getDatePattern(options: {formatLength: string, selector: string}): Promise<{pattern: string}> { return; }
|
static getDatePattern(options: {formatLength: string, selector: string}): Promise<{pattern: string}> { return; }
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param options
|
* @param options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user