Skip to content

Commit

Permalink
fix(globalization): getDatePattern return types (#1451)
Browse files Browse the repository at this point in the history
Added missing return types to getDatePattern.
  • Loading branch information
dylanvdmerwe authored and ihadeed committed May 1, 2017
1 parent 84cd81d commit 6e2fdf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/@ionic-native/plugins/globalization/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6e2fdf9

Please sign in to comment.