Skip to content

PostPatchHandlerFunction<$Object, MethodName>

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

Import:

import type { PostPatchHandlerFunction } from 'obsidian-dev-utils/obsidian/components/monkey-around-component';

Signature:

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

Signature:

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

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


Links to this page: