mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
refactor(lib): run prettier
This commit is contained in:
@@ -39,7 +39,7 @@ export interface GlobalizationOptions {
|
||||
plugin: 'cordova-plugin-globalization',
|
||||
pluginRef: 'navigator.globalization',
|
||||
repo: 'https://github.com/apache/cordova-plugin-globalization',
|
||||
platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows']
|
||||
platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'],
|
||||
})
|
||||
@Injectable()
|
||||
export class Globalization extends IonicNativePlugin {
|
||||
@@ -69,12 +69,9 @@ export class Globalization extends IonicNativePlugin {
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
errorIndex: 2,
|
||||
})
|
||||
dateToString(
|
||||
date: Date,
|
||||
options: GlobalizationOptions
|
||||
): Promise<{ value: string }> {
|
||||
dateToString(date: Date, options: GlobalizationOptions): Promise<{ value: string }> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -86,7 +83,7 @@ export class Globalization extends IonicNativePlugin {
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
errorIndex: 2,
|
||||
})
|
||||
stringToDate(
|
||||
dateString: string,
|
||||
@@ -109,7 +106,7 @@ export class Globalization extends IonicNativePlugin {
|
||||
* @returns {Promise<{ pattern: string, timezone: string, utc_offset: number, dst_offset: number }>} Returns a promise.
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
getDatePattern(
|
||||
options: GlobalizationOptions
|
||||
@@ -129,12 +126,9 @@ export class Globalization extends IonicNativePlugin {
|
||||
* @returns {Promise<{value: string[]}>} Returns a promise.
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
getDateNames(options: {
|
||||
type: string;
|
||||
item: string;
|
||||
}): Promise<{ value: string[] }> {
|
||||
getDateNames(options: { type: string; item: string }): Promise<{ value: string[] }> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -164,12 +158,9 @@ export class Globalization extends IonicNativePlugin {
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
errorIndex: 2,
|
||||
})
|
||||
numberToString(
|
||||
numberToConvert: number,
|
||||
options: { type: string }
|
||||
): Promise<{ value: string }> {
|
||||
numberToString(numberToConvert: number, options: { type: string }): Promise<{ value: string }> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -181,12 +172,9 @@ export class Globalization extends IonicNativePlugin {
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
errorIndex: 2,
|
||||
})
|
||||
stringToNumber(
|
||||
stringToConvert: string,
|
||||
options: { type: string }
|
||||
): Promise<{ value: number | string }> {
|
||||
stringToNumber(stringToConvert: string, options: { type: string }): Promise<{ value: number | string }> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -196,7 +184,7 @@ export class Globalization extends IonicNativePlugin {
|
||||
* @returns {Promise<{ pattern: string, symbol: string, fraction: number, rounding: number, positive: string, negative: string, decimal: string, grouping: string }>}
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
getNumberPattern(options: {
|
||||
type: string;
|
||||
|
||||
Reference in New Issue
Block a user