mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
fix(globalization): getDatePattern return types (#1451)
Added missing return types to getDatePattern.
This commit is contained in:
parent
84cd81dcaf
commit
6e2fdf98a2
@ -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.
|
* 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
|
* @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({
|
@Cordova({
|
||||||
callbackOrder: 'reverse'
|
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.
|
* Returns an array of the names of the months or days of the week, depending on the client's user preferences and calendar.
|
||||||
|
Loading…
Reference in New Issue
Block a user