Class UnionType

Represents an union type.

let value: string | string[];

Hierarchy (view full)

Constructors

Properties

type: "union" = "union"

The type name identifier.

types: Models.SomeType[]

Methods

  • Implementation method for toString. needsParenthesis will be used to determine if the returned string should be wrapped in parenthesis.

    Returns string