---
id: fast-foundation.resolverbuilder.aliasto
title: ResolverBuilder.aliasTo() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [ResolverBuilder](./fast-foundation.resolverbuilder.md) &gt; [aliasTo](./fast-foundation.resolverbuilder.aliasto.md)

## ResolverBuilder.aliasTo() method

Aliases the current key to a different key.

<b>Signature:</b>

```typescript
aliasTo(destinationKey: Key): Resolver<K>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  destinationKey | [Key](./fast-foundation.key.md) | The key to point the alias to. |

<b>Returns:</b>

[Resolver](./fast-foundation.resolver.md)<!-- -->&lt;K&gt;

The resolver.
