@twilio/flex-sdk
    Preparing search index...

    Type Alias QueryResultMap<TData>

    type QueryResultMap<TData = unknown> = {
        all: { data: TData | undefined; error?: ErrorLike };
        ignore: { data: TData | undefined; error?: never };
        none: { data: TData; error?: never };
        undefined: { data: TData | undefined; error?: ErrorLike };
    }

    Type Parameters

    • TData = unknown
    Index

    Properties

    all: { data: TData | undefined; error?: ErrorLike }

    Type Declaration

    • data: TData | undefined

      An object containing the result of your GraphQL query after it completes.

      This value might be undefined if a query results in one or more errors (depending on the query's errorPolicy).

      1. Operation data
    • Optionalerror?: ErrorLike

      A single ErrorLike object describing the error that occurred during the latest query execution.

      For more information, see Handling operation errors.

      1. Operation data
    ignore: { data: TData | undefined; error?: never }

    Type Declaration

    • data: TData | undefined

      An object containing the result of your GraphQL query after it completes.

      This value might be undefined if a query results in one or more errors (depending on the query's errorPolicy).

      1. Operation data
    • Optionalerror?: never

      A single ErrorLike object describing the error that occurred during the latest query execution.

      For more information, see Handling operation errors.

      1. Operation data
    none: { data: TData; error?: never }

    Type Declaration

    • data: TData

      An object containing the result of your GraphQL query after it completes.

      This value might be undefined if a query results in one or more errors (depending on the query's errorPolicy).

      1. Operation data
    • Optionalerror?: never

      A single ErrorLike object describing the error that occurred during the latest query execution.

      For more information, see Handling operation errors.

      1. Operation data
    undefined: { data: TData | undefined; error?: ErrorLike }

    Type Declaration

    • data: TData | undefined

      An object containing the result of your GraphQL query after it completes.

      This value might be undefined if a query results in one or more errors (depending on the query's errorPolicy).

      1. Operation data
    • Optionalerror?: ErrorLike

      A single ErrorLike object describing the error that occurred during the latest query execution.

      For more information, see Handling operation errors.

      1. Operation data