Skip to content

FileCommandHandlerShouldAddToFileMenuParams

Parameters for FileCommandHandler.shouldAddToFileMenu.

Import:

import type { FileCommandHandlerShouldAddToFileMenuParams } from '@mnaoumov/obsidian-lib/command-handlers/file-command-handler';

Signature:

export interface FileCommandHandlerShouldAddToFileMenuParams

Properties

PropertyTypeDescription
fileTFileThe file.
leaf?undefined | WorkspaceLeafThe workspace leaf, if available.
sourcestringThe source of the event.