TransformCallback

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

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

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 NodeNode

Parameters

ParameterType
error?Error
tree?Output
file?VFile

Returns

undefined