TransformCallback

TransformCallback<Output>: (error?, tree?, file?) => undefined

Callback passed to transforms.

If the signature of a transformer accepts a third argument, the transformer may perform asynchronous operations, and must call it.

Type Parameters

Type ParameterDefault type
Output extends ../../node_modules/@types/unist../../node_modules/@types/unist

Parameters

ParameterType
error?Error
tree?Output
file?VFile

Returns

undefined

Defined in

node_modules/unified/lib/index.d.ts:989