fix types

This commit is contained in:
Philipinho
2024-03-25 02:19:28 +00:00
parent df6b0326ba
commit cacb5606b1
5 changed files with 18 additions and 18 deletions

View File

@ -23,7 +23,7 @@ export class CollabWsAdapter {
socket.destroy();
}
} catch (err) {
socket.end('HTTP/1.1 400\r\n' + err.message);
socket.end('HTTP/1.1 400\r\n' + (err as Error).message);
}
});

View File

@ -29,7 +29,7 @@ export const tiptapExtensions = [
TrailingNode,
TextStyle,
Color,
];
] as any;
export function jsonToHtml(tiptapJson: JSONContent) {
return generateHTML(tiptapJson, tiptapExtensions);