Skip to main content
Version: 2.x

ResolverBuilder.aliasTo() method

@microsoft/fast-element/di.js > ResolverBuilder > aliasTo

ResolverBuilder.aliasTo() method

Aliases the current key to a different key.

Signature:

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

Parameters

Parameter

Type

Description

destinationKey

Key

The key to point the alias to.

Returns:

Resolver<K>

The resolver.