Skip to content

Commit

Permalink
fix: optional key
Browse files Browse the repository at this point in the history
  • Loading branch information
beeant0512 committed Nov 5, 2024
1 parent d000c4d commit 7c51ad8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mention/src/lib/BaseMentionPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type MentionConfig = PluginConfig<
{},
{
insert: {
mention: (options: { key: any; search: string; value: any; }) => void;
mention: (options: { key?: any; search: string; value: any; }) => void;
};
}
>;
Expand Down
2 changes: 1 addition & 1 deletion packages/mention/src/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { TElement } from '@udecode/plate-common';

export interface TMentionItemBase {
key: any;
key?: any;
text: string;
}

Expand Down

0 comments on commit 7c51ad8

Please sign in to comment.