fix: presentUnfurl

This commit is contained in:
Apoorv Mishra
2023-07-23 20:39:16 +05:30
parent 8b3c58a162
commit a30487c2d7
3 changed files with 20 additions and 3 deletions

View File

@@ -214,13 +214,15 @@ export enum UnfurlType {
Document = "document",
}
export type Unfurl<T = unknown> = {
export type OEmbedType = "photo" | "video" | "rich";
export type Unfurl<T = OEmbedType> = {
url?: string;
type: T;
title: string;
description: string;
thumbnailUrl?: string | null;
meta: Record<string, string>;
meta?: Record<string, string>;
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any