Rocket.Chat.ReactNative/app/definitions/IUpload.ts

24 lines
439 B
TypeScript

import Model from '@nozbe/watermelondb/Model';
import { E2EType, MessageType } from './IMessage';
export interface IUpload {
id?: string;
rid: string;
path: string;
name?: string;
tmid?: string;
description?: string;
size: number;
type?: string;
store?: string;
progress?: number;
error?: boolean;
subscription?: { id: string };
msg?: string;
t?: MessageType;
e2e?: E2EType;
}
export type TUploadModel = IUpload & Model;