Trilium Frontend API
    Preparing search index...

    Type Alias DOMEventHandlers<This>

    DOMEventHandlers: {
        [event in keyof DOMEventMap]?: (
            this: This,
            event: DOMEventMap[event],
            view: EditorView,
        ) => boolean | void
    }

    Event handlers are specified with objects like this. For event types known by TypeScript, this will infer the event argument type to hold the appropriate event object type. For unknown events, it is inferred to any, and should be explicitly set if you want type checking.

    Type Parameters

    • This