fix: handle errors from Iframely

This commit is contained in:
Apoorv Mishra
2023-07-24 23:04:40 +05:30
parent 81bd68380e
commit bd0240b7a5
4 changed files with 25 additions and 12 deletions

View File

@@ -225,5 +225,10 @@ export type Unfurl<T = OEmbedType> = {
meta?: Record<string, string>;
};
export type IframelyErrorResponse = {
status: number;
error: string;
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type ProsemirrorData = Record<string, any>;