Page Contents
Home > @loopback/repository > UnionType
UnionType class
Union type, such as string | number
Signature:
export declare class UnionType implements Type<any>
Implements: Type<any>
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(itemTypes) | Constructs a new instance of the UnionType class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| itemTypes | Type<any>[] | ||
| name | (not declared) |
Methods
| Method | Modifiers | Description |
|---|---|---|
| coerce(value) | ||
| defaultValue() | ||
| isCoercible(value) | ||
| isInstance(value) | ||
| serialize(value) |