Skip to content

Commit

Permalink
fix(firebase-x): adjust typings (#3228)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
viniciuscostass authored and danielsogl committed Nov 19, 2019
1 parent 48082ee commit f2961fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/@ionic-native/plugins/firebase-x/index.ts
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit f2961fb

Please sign in to comment.