From 5a864d385aef22b4f032899a781e8dabe0c0e056 Mon Sep 17 00:00:00 2001 From: the1812 Date: Tue, 23 Apr 2024 23:15:45 +0800 Subject: [PATCH] Fix typings --- src/components/utils/comment-apis.ts | 4 ++++ src/components/utils/comment/comment-area.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/components/utils/comment-apis.ts b/src/components/utils/comment-apis.ts index 5f129f96c0..326b71045d 100644 --- a/src/components/utils/comment-apis.ts +++ b/src/components/utils/comment-apis.ts @@ -35,3 +35,7 @@ export const addMenuItem = ( ) => { commentAreaManager.forEachCommentArea(area => area.addMenuItem(item, config)) } + +export * from './comment/comment-area' +export * from './comment/comment-item' +export * from './comment/reply-item' diff --git a/src/components/utils/comment/comment-area.ts b/src/components/utils/comment/comment-area.ts index 1ce91d399c..9bcf1deee9 100644 --- a/src/components/utils/comment/comment-area.ts +++ b/src/components/utils/comment/comment-area.ts @@ -8,3 +8,7 @@ export const getCommentArea = (element: HTMLElement): CommentArea => { } return new CommentAreaV1(element) } + +export * from './areas/base' +export * from './areas/v1' +export * from './areas/v2'