Skip to content

on

Unofficial

Registers an event handler on the given target.

Import:

import type { on } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

function on(target: unknown, type: string, f: (...args: unknown[]) => void): void

Parameters:

ParameterTypeDescription
targetunknownThe target object.
typestringThe event type.
f(…args: unknown[]) => voidThe event handler.

Returns: void


Links to this page: