Update index.ts

As stated in the plugin repo, the options field is optional. Also, the plugin returns a `iana_timezone` property such as 'America/New_York' which was not included.
This commit is contained in:
jeffreyramia 2018-02-22 21:08:14 +02:00 committed by GitHub
parent 954bd876de
commit 19c0b5812d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ export class Globalization extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse'
})
getDatePattern(options: { formatLength: string, selector: string }): Promise<{ pattern: string, timezone: string, utf_offset: number, dst_offset: number }> { return; }
getDatePattern(options?: { formatLength: string, selector: string }): Promise<{ pattern: string, timezone: string, iana_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.