-
Notifications
You must be signed in to change notification settings - Fork 180
/
index.ts
43 lines (40 loc) · 1.41 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { MessengerAudioParams } from './MessengerAudioParams';
import { MessengerFileParams } from './MessengerFileParams';
import { MessengerImageParams } from './MessengerImageParams';
import { MessengerParams } from './MessengerParams';
import { MessengerTextParams } from './MessengerTextParams';
import { MessengerType } from './MessengerType';
import { MessengerVideoParams } from './MessengerVideoParams';
import { Channels } from "../../../enums";
export * from './MessengerAudioParams';
export * from './MessengerFileParams';
export * from './MessengerImageParams';
export * from './MessengerParams';
export * from './MessengerTextParams';
export * from './MessengerType';
export * from './MessengerVideoParams';
/**
* Represents a union type that can be any of the Messenger-specific message
* parameters or MessengerType.
*
* @group Messenger
* @category Parameters
*/
export type AnyMessengerParams =
MessengerAudioParams |
MessengerFileParams |
MessengerImageParams |
MessengerParams |
MessengerTextParams |
MessengerType |
MessengerVideoParams;
/**
* Represents a union type that includes the 'channel' property set to 'messenger'
* along with any of the Messenger-specific message parameters or MessengerType.
*/
export type AnyMessengerChannel = {
/**
* The channel through which the message will be sent, which is 'messenger' for Messenger.
*/
channel: Channels.MESSENGER
} & AnyMessengerParams