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
| Parameter | Type | Description |
|---|---|---|
node | PmNode | The node to evaluate. |
Returns
boolean
true if the node matches the search criteria, false otherwise.