From 21b93e65f8948d38bef2fe194d58d4a03000ffb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 16 Feb 2021 18:47:44 +0100 Subject: [PATCH] fix typescript docs --- docs/src/docPages/guide/typescript.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/src/docPages/guide/typescript.md b/docs/src/docPages/guide/typescript.md index 79f9b3a1..bb04e63b 100644 --- a/docs/src/docPages/guide/typescript.md +++ b/docs/src/docPages/guide/typescript.md @@ -38,10 +38,12 @@ import { Command, Extension } from '@tiptap/core' declare module '@tiptap/core' { interface Commands { - /** - * Comments will be added to the autocomplete. - */ - yourCommand: (someProp: any) => Command, + customExtension: { + /** + * Comments will be added to the autocomplete. + */ + yourCommand: (someProp: any) => Command, + } } }