---
id: fast-foundation.factory.registertransformer
title: Factory.registerTransformer() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [Factory](./fast-foundation.factory.md) &gt; [registerTransformer](./fast-foundation.factory.registertransformer.md)

## Factory.registerTransformer() method

Registers a transformer function to alter the object after instantiation but before returning the final constructed instance.

<b>Signature:</b>

```typescript
registerTransformer(transformer: Transformer<T>): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  transformer | Transformer&lt;T&gt; | The transformer function. |

<b>Returns:</b>

void
