Definitely going to need to work on the types here
This commit is contained in:
@ -123,9 +123,28 @@ export type GCMessage = {
|
||||
pending?: boolean;
|
||||
quickReplies?: GCQuickReplies;
|
||||
};
|
||||
export type GCState = {
|
||||
messages: any[];
|
||||
step: number;
|
||||
loadEarlier?: boolean;
|
||||
isLoadingEarlier?: boolean;
|
||||
isTyping: boolean;
|
||||
};
|
||||
export enum ActionKind {
|
||||
SEND_MESSAGE = 'SEND_MESSAGE',
|
||||
LOAD_EARLIER_MESSAGES = 'LOAD_EARLIER_MESSAGES',
|
||||
LOAD_EARLIER_START = 'LOAD_EARLIER_START',
|
||||
SET_IS_TYPING = 'SET_IS_TYPING',
|
||||
// LOAD_EARLIER_END = 'LOAD_EARLIER_END',
|
||||
};
|
||||
export type GCStateAction = {
|
||||
type: ActionKind;
|
||||
payload?: any;
|
||||
};
|
||||
export type NotificationMessage = {
|
||||
sound?: string;
|
||||
title: string;
|
||||
body: string;
|
||||
data?: any;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user