Skip to content

Instantly share code, notes, and snippets.

@alkjez
Created October 23, 2018 23:08
Show Gist options
  • Save alkjez/c820f4837ec39c2ad26fb4cf30074246 to your computer and use it in GitHub Desktop.
Save alkjez/c820f4837ec39c2ad26fb4cf30074246 to your computer and use it in GitHub Desktop.
interface PreviousMessageListQuery {
hasMore: boolean;
isLoading: boolean;
limit: number;
reverse: boolean;
messageTypeFilter: 0 | 1 | 2 | 3; // 0: ALL, 1: USER, 2: FILE, 3: ADMIN
customTypeFilter: string;
senderUserIdsFilter: Array<string>;
load(limit: number, reverse: boolean, callback: messageListCallback): void;
load(limit: number, reverse: boolean, messageType: number, callback:
messageListCallback): void;
load(callback: messageListCallback): void;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment