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
This commit is contained in:
viniciuscostass 2019-11-19 05:35:03 -03:00 committed by Daniel Sogl
parent 48082eeaef
commit f2961fb4bb

View File

@ -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