2020-10-15 08:19:49 +02:00
|
|
|
import { ConversationModel } from './models/conversations';
|
2020-10-15 07:43:51 +02:00
|
|
|
|
|
|
|
export type ConversationControllerType = {
|
2020-10-15 08:19:49 +02:00
|
|
|
reset: () => void;
|
|
|
|
load: () => Promise<void>;
|
|
|
|
get: (id: string) => ConversationModel | undefined;
|
|
|
|
getOrThrow: (id: string) => ConversationModel;
|
|
|
|
getOrCreateAndWait: (id: string, type: string) => Promise<ConversationModel>;
|
|
|
|
getOrCreate: (id: string, type: string) => Promise<ConversationModel>;
|
2020-11-24 23:14:22 +01:00
|
|
|
dangerouslyCreateAndAdd: (any) => any;
|
2020-10-15 08:19:49 +02:00
|
|
|
};
|