mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-16 08:21:10 +08:00
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:
parent
48082eeaef
commit
f2961fb4bb
@ -13,6 +13,11 @@ export interface IChannelOptions {
|
|||||||
*/
|
*/
|
||||||
name?: string;
|
name?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Channel description. Default: empty string
|
||||||
|
*/
|
||||||
|
description?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The sound to play once a push comes. Default value: 'default'
|
* The sound to play once a push comes. Default value: 'default'
|
||||||
* Values allowed:
|
* Values allowed:
|
||||||
@ -29,7 +34,7 @@ export interface IChannelOptions {
|
|||||||
* Boolean - vibrate or not
|
* Boolean - vibrate or not
|
||||||
* Array - vibration pattern - e.g. [500, 200, 500] - milliseconds vibrate, milliseconds pause, vibrate, pause, etc.
|
* 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
|
* Whether to blink the LED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user