SerenityJS
    Preparing search index...

    Class TimeOpertation

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    optional: boolean = true

    Whether the enum value is optional.

    options: (string | number | boolean)[]

    The expected options of the enum.

    result: null | string | number | boolean

    The result of the enum.

    default: Enum = ...
    enums: Map<string, Enum> = ...
    identifier: "time_operation"

    The type of the enum.

    options: string[] = ...

    The options of the enum.

    strict: boolean = true

    Whether the enum is strict to its options.

    symbol: number = ...

    The symbol of the enum.

    type: 1040 = 0x4_10

    The type of the enum.

    Methods

    • Validates if the result is a valid option.

      Parameters

      • error: boolean = false

        Whether to throw an error if the result is not a valid option.

      Returns boolean

      Returns true if the result is a valid option, or false otherwise.