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

24 lines
467 B
TypeScript
Raw Normal View History

import Model from '@nozbe/watermelondb/Model';
export interface ISlashCommand {
id: string;
params?: string;
description?: string;
clientOnly?: boolean;
providesPreview?: boolean;
appId?: string;
}
export interface ISlashCommandResult extends ISlashCommand {
command: string;
}
export type TSlashCommandModel = ISlashCommand & Model;
2024-01-25 14:11:07 +00:00
// For Command Preview ex: /giphy or /tenor
export interface IPreviewItem {
id: string;
type: string;
value: string;
}