mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +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
|
||||
@ -40,7 +40,7 @@ export class Globalization {
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
errorIndex 2
|
||||
})
|
||||
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; }
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param options
|
||||
@ -65,7 +64,6 @@ export class Globalization {
|
||||
})
|
||||
static getDatePattern(options: {formatLength: string, selector: string}): Promise<{pattern: string}> { return; }
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param options
|
||||
|
Loading…
Reference in New Issue
Block a user