@elemental-design/expo-notifications
Version:
27 lines (26 loc) • 754 B
TypeScript
import { Platform } from 'react-native';
export interface NativeDevicePushToken {
type: 'ios' | 'android';
data: string;
}
export interface WebDevicePushToken {
type: 'web';
data: {
endpoint: string;
keys: {
p256dh: string;
auth: string;
};
};
}
declare type ExplicitlySupportedDevicePushToken = NativeDevicePushToken | WebDevicePushToken;
declare type ImplicitlySupportedDevicePushToken = {
type: Exclude<typeof Platform.OS, ExplicitlySupportedDevicePushToken['type']>;
data: any;
};
export declare type DevicePushToken = ExplicitlySupportedDevicePushToken | ImplicitlySupportedDevicePushToken;
export interface ExpoPushToken {
type: 'expo';
data: string;
}
export {};