mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add visibility and importance to options (#37346)
This commit is contained in:
parent
8e8902b6da
commit
39c9df962a
@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/zo0r/react-native-push-notification#readme
|
||||
// Definitions by: Paito Anderson <https://github.com/PaitoAnderson>
|
||||
// Tom Sawkins <https://github.com/tomSawkins>
|
||||
// Andrew Li <https://github.com/Li357>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@ -33,6 +34,8 @@ export interface PushNotificationOptions {
|
||||
|
||||
export type PriorityType = "max" | "high" | "low" | "min" | "default";
|
||||
export type RepeatType = "week" | "day" | "hour" | "minute" | "time";
|
||||
export type VisibilityType = "private" | "public" | "secret";
|
||||
export type ImportanceType = "default" | "max" | "high" | "low" | "min" | "none" | "unspecified";
|
||||
|
||||
export class PushNotificationObject {
|
||||
/* Android only properties */
|
||||
@ -50,6 +53,8 @@ export class PushNotificationObject {
|
||||
group?: string;
|
||||
ongoing?: boolean;
|
||||
priority?: PriorityType;
|
||||
visibility?: VisibilityType;
|
||||
importance?: ImportanceType;
|
||||
|
||||
/* iOS only properties */
|
||||
alertAction?: any;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user