Class TokenValue

A token that has a decoded haystack value.

Hierarchy

  • TokenValue

Implements

Constructors

Properties

_isATokenValue: true = true

Flag used to identify a token value.

type: TokenType

The token type.

value: HVal

The haystack value.

Methods

  • Returns true if the type matches this token's type.

    Parameters

    Returns boolean

    True if the type matches.

  • Returns {
        type: string;
        [prop: string]: string | string[] | HaysonVal;
    }

    A JSON representation of the token.

    • [prop: string]: string | string[] | HaysonVal
    • type: string

Generated using TypeDoc