AutoBE
    Preparing search index...

    TypeOf expression for runtime type checking.

    Represents the JavaScript typeof operator for determining the type of a value at runtime. Essential for type validation, conditional logic based on data types, and ensuring captured API response data matches expected types in business scenarios.

    E2E testing scenarios:

    • Validating captured API response data types before use
    • Conditional business logic based on data type checking
    • Type safety verification for dynamic data from API operations
    • Ensuring proper data type handling in business workflows

    Common return values:

    • "string" for text data from API responses
    • "number" for numeric values from API operations
    • "boolean" for flag values from API calls
    • "object" for entity data from API responses (including arrays)
    • "undefined" for missing or uninitialized data
    • "function" for callback or utility function references

    AI function calling usage: Use when business logic requires runtime type validation of captured data or when conditional operations depend on data type verification from API responses.

    interface ITypeOfExpression {
        expression: IExpression;
        type: "typeOfExpression";
    }
    Index

    Properties

    Properties

    expression: IExpression

    Expression whose type should be determined at runtime.

    Can be any expression that evaluates to a value requiring type checking. Commonly used with captured data from API operations, variable references, or property access expressions to validate data types before use in business logic.

    Common patterns:

    • Identifiers referencing captured API response data
    • Property access expressions extracting fields from API responses
    • Array/object element access for nested data type validation
    • Variable references for dynamic data type checking

    Should reference captured data or computed values, not direct API calls.

    AI expression selection: Choose expressions that represent data whose type needs runtime verification, especially when working with dynamic API response data or conditional business logic.

    type: "typeOfExpression"

    Type discriminator.