Skip to content

off

Unofficial

Removes an event handler from the given target.

Import:

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

Signature:

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

Parameters:

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

Returns: void


Links to this page: