MutkaMutka

MutkaOpenHandler

Reference — MutkaOpenHandler in the Mutka module API.

Interface: MutkaOpenHandler

Defined in: module-registry/module-registry.types.ts:99

Properties

handle

handle: (item) => void | Promise<void>;

Defined in: module-registry/module-registry.types.ts:110

Execute the open operation. Acts via the module's host capabilities.

Parameters

ParameterType
itemFileItem

Returns

void | Promise<void>


id

id: string;

Defined in: module-registry/module-registry.types.ts:101

Globally unique ID, format: "module-id.handler-name"


matches

matches: (item) => boolean;

Defined in: module-registry/module-registry.types.ts:108

Return true if this handler wants to handle the given item.

Parameters

ParameterType
itemFileItem

Returns

boolean


priority?

optional priority?: number;

Defined in: module-registry/module-registry.types.ts:106

Priority for conflict resolution. Higher number wins. Core defaults are at 0. Community overrides should use 1–100.

On this page