Skip to content

Type Editor


Type Editor / @type-editor/util / types/FindCallbackFunction / FindCallbackFunction

Type Alias: FindCallbackFunction()

ts
type FindCallbackFunction = (node) => boolean;

Defined in: types/FindCallbackFunction.ts:9

A callback function used to find nodes in the document tree.

Parameters

ParameterTypeDescription
nodePmNodeThe node to evaluate.

Returns

boolean

true if the node matches the search criteria, false otherwise.