From 6e2fdf98a2ebe14f2ba8d319530bb312a7872d7c Mon Sep 17 00:00:00 2001 From: "Dylan v.d Merwe" Date: Mon, 1 May 2017 22:46:06 +0200 Subject: [PATCH] fix(globalization): getDatePattern return types (#1451) Added missing return types to getDatePattern. --- src/@ionic-native/plugins/globalization/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/globalization/index.ts b/src/@ionic-native/plugins/globalization/index.ts index 3e7a22eda..c890893e8 100644 --- a/src/@ionic-native/plugins/globalization/index.ts +++ b/src/@ionic-native/plugins/globalization/index.ts @@ -72,12 +72,12 @@ export class Globalization extends IonicNativePlugin { /** * Returns a pattern string to format and parse dates according to the client's user preferences. * @param options Object with the format length and selector - * @returns {Promise<{pattern: string}>} Returns a promise. + * @returns {Promise<{ pattern: string, timezone: string, utf_offset: number, dst_offset: number }>} Returns a promise. */ @Cordova({ callbackOrder: 'reverse' }) - getDatePattern(options: { formatLength: string, selector: string }): Promise<{ pattern: string }> { return; } + getDatePattern(options: { formatLength: string, selector: string }): Promise<{ pattern: string, timezone: string, utf_offset: number, dst_offset: number }> { return; } /** * Returns an array of the names of the months or days of the week, depending on the client's user preferences and calendar.