From 69b86e5387c6f464cbdc062da64e76fcae7f21d1 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 14 Oct 2024 07:35:52 +0200 Subject: [PATCH] fix(types): add type declaration for Paragraph node `createCustomEditor.ts` test script imports `Paragraph` and `tsc` complains without type definitions. Signed-off-by: Max --- src/nodes/Paragraph.d.ts | 4 ++++ src/nodes/{Paragraph.ts => Paragraph.js} | 0 2 files changed, 4 insertions(+) create mode 100644 src/nodes/Paragraph.d.ts rename src/nodes/{Paragraph.ts => Paragraph.js} (100%) diff --git a/src/nodes/Paragraph.d.ts b/src/nodes/Paragraph.d.ts new file mode 100644 index 0000000000..39c0439c3b --- /dev/null +++ b/src/nodes/Paragraph.d.ts @@ -0,0 +1,4 @@ +import type { Node } from '@tiptap/core' + +declare const Paragraph: Node +export default Paragraph diff --git a/src/nodes/Paragraph.ts b/src/nodes/Paragraph.js similarity index 100% rename from src/nodes/Paragraph.ts rename to src/nodes/Paragraph.js