@microsoft/fast-element > normalizeBinding

normalizeBinding() function

Normalizes the input value into a binding.

Signature:

export declare function normalizeBinding<TSource = any, TReturn = any, TParent = any>(value: Expression<TSource, TReturn, TParent> | Binding<TSource, TReturn, TParent> | {}): Binding<TSource, TReturn, TParent>;

Parameters

Parameter

Type

Description

value

Expression<TSource, TReturn, TParent> | Binding<TSource, TReturn, TParent> | {}

The value to create the default binding for.

Returns:

Binding<TSource, TReturn, TParent>

A binding configuration for the provided value.