RocketChat/Rocket.Chat

View on GitHub
packages/model-typings/src/models/IOEmbedCacheModel.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { IOEmbedCache } from '@rocket.chat/core-typings';
import type { DeleteResult } from 'mongodb';

import type { IBaseModel } from './IBaseModel';

export interface IOEmbedCacheModel extends IBaseModel<IOEmbedCache> {
    createWithIdAndData(_id: string, data: any): Promise<IOEmbedCache>;

    removeBeforeDate(date: Date): Promise<DeleteResult>;
}