Skip to content

PostPatchHandlerFunction<$Object, MethodName>

A post-patch handler function that runs after a patch is applied.

It returns nothing and is not handed the patched method: the method installed is always the one the patch builds, so a post-patch handler cannot graft members onto it. A capability beyond the patched method’s own signature belongs on the plugin’s published API instead.

Import:

import type { PostPatchHandlerFunction } from '@mnaoumov/obsidian-lib/components/monkey-around-component';

Signature:

export type PostPatchHandlerFunction<$Object extends object, MethodName extends MethodKeys<$Object>>

Signature:

type PostPatchHandlerFunction<$Object, MethodName> = (
params: PostPatchHandlerParams<$Object, MethodName>
) => void

Type: ( params: PostPatchHandlerParams<$Object, MethodName> ) => void


Links to this page: