From f2961fb4bb93da2aee321b2c69e834266e17241c Mon Sep 17 00:00:00 2001 From: viniciuscostass Date: Tue, 19 Nov 2019 05:35:03 -0300 Subject: [PATCH] fix(firebase-x): adjust typings (#3228) * Update index.ts Added description field to IChannelOptions object and changed vibration type to get a number array * Update index.ts Added description field to IChannelOptions object and changed vibration type to get a number array --- src/@ionic-native/plugins/firebase-x/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/firebase-x/index.ts b/src/@ionic-native/plugins/firebase-x/index.ts index da4875bc1..1e4846ae8 100644 --- a/src/@ionic-native/plugins/firebase-x/index.ts +++ b/src/@ionic-native/plugins/firebase-x/index.ts @@ -13,6 +13,11 @@ export interface IChannelOptions { */ name?: string; + /** + * Channel description. Default: empty string + */ + description?: string; + /** * The sound to play once a push comes. Default value: 'default' * Values allowed: @@ -29,7 +34,7 @@ export interface IChannelOptions { * Boolean - vibrate or not * Array - vibration pattern - e.g. [500, 200, 500] - milliseconds vibrate, milliseconds pause, vibrate, pause, etc. */ - vibration?: boolean; + vibration?: boolean | number[]; /** * Whether to blink the LED