From 81f4696ed38fcf8d49fcf78bc155a98c01910316 Mon Sep 17 00:00:00 2001 From: onePone Date: Mon, 25 Dec 2023 11:21:13 +0800 Subject: [PATCH] chore: modify as suggested --- src/lib/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/types.ts b/src/lib/types.ts index 341453b2..6bb94d72 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -306,7 +306,7 @@ export type OnContextMenu = (contextMenuProps: AbsolutePopupOptions) => void export type RenderMenuContext = { mode: 'tree' | 'text' | 'table' modal: boolean - selection?: JSONEditorSelection | null + selection: JSONEditorSelection | null } export type OnRenderMenu = (items: MenuItem[], context: RenderMenuContext) => MenuItem[] | undefined export type OnRenderMenuInternal = (items: MenuItem[]) => MenuItem[]