Skip to main content
Version: v2

TypeFactoryUnion Interface

Represents a union type in the type factory system.

This API is provided as an alpha preview and may change without notice.

To use, import via @fluidframework/type-factory/alpha.

For more information about our API support guarantees, see here.

Signature​

export interface TypeFactoryUnion extends TypeFactoryType

Extends: TypeFactoryType

Properties​

PropertyAlertsModifiersTypeDescription
_kindAlphareadonly"union"The kind of type this represents.
optionsAlphareadonlyreadonly TypeFactoryType[]The possible types in the union.

Property Details​

_kind​

The kind of type this represents.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature​

readonly _kind: "union";

Type: "union"

options​

The possible types in the union.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature​

readonly options: readonly TypeFactoryType[];

Type: readonly TypeFactoryType[]