Skip to content

off

Unofficial

Removes an event handler from the given target.

Import:

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

Signature:

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

Parameters:

Parameter Type Description
target unknown The target object.
type string The event type.
f (…args: unknown[]) => void The event handler to remove.

Returns: void


Links to this page: