> ## Documentation Index
> Fetch the complete documentation index at: https://fastmcp-ts.docs.prefect.io/llms.txt
> Use this file to discover all available pages before exploring further.

# ComponentFn

```ts theme={null}
type ComponentFn = (route, component) => void;
```

Defined in: [server/openapi/types.ts:146](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/types.ts#L146)

Component customization hook, called with each generated component before
registration. Mutate the component in place (rename, edit description,
adjust tags or schemas). Exceptions are swallowed with a warning.

## Parameters

### route

[`HTTPRoute`](/api/server/interfaces/HTTPRoute)

### component

[`OpenAPIComponent`](/api/server/type-aliases/OpenAPIComponent)

## Returns

`void`
