refactor(lib): run prettier

This commit is contained in:
Daniel Sogl
2020-05-16 14:40:49 +02:00
parent f5133c691d
commit 511a02d50b
326 changed files with 3079 additions and 4092 deletions
@@ -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;