Skip to content

Commit

Permalink
fix: type definition of RenderMenuContext.mode
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Feb 15, 2024
1 parent 3a28757 commit 51a7133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export type OnClassName = (path: JSONPath, value: unknown) => string | undefined
export type OnChangeMode = (mode: Mode) => void
export type OnContextMenu = (contextMenuProps: AbsolutePopupOptions) => void
export type RenderMenuContext = {
mode: 'tree' | 'text' | 'table'
mode: Mode
modal: boolean
}
export type OnRenderMenu = (items: MenuItem[], context: RenderMenuContext) => MenuItem[] | undefined
Expand Down

0 comments on commit 51a7133

Please sign in to comment.