chore: Improve typings around model methods (#6324)
This commit is contained in:
@@ -250,5 +250,15 @@ export type Unfurl<T = OEmbedType> = {
|
||||
meta?: Record<string, string>;
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export type ProsemirrorData = Record<string, any>;
|
||||
export type JSONValue =
|
||||
| string
|
||||
| number
|
||||
| boolean
|
||||
| undefined
|
||||
| null
|
||||
| { [x: string]: JSONValue }
|
||||
| Array<JSONValue>;
|
||||
|
||||
export type JSONObject = { [x: string]: JSONValue };
|
||||
|
||||
export type ProsemirrorData = JSONObject;
|
||||
|
||||
Reference in New Issue
Block a user