From bdd20d61321f5d89aac68c878e5e5885aba7ace5 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 | 9 +++++++++ src/nodes/{Paragraph.ts => Paragraph.js} | 0 2 files changed, 9 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..3e607621f6 --- /dev/null +++ b/src/nodes/Paragraph.d.ts @@ -0,0 +1,9 @@ +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +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