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

    Interface TypedDocumentNode<TResult, TVariables>

    The root AST node for a parsed GraphQL document.

    interface TypedDocumentNode<
        TResult = { [key: string]: any },
        TVariables = { [key: string]: any },
    > {
        __apiType?: (variables: TVariables) => TResult;
        definitions: readonly DefinitionNode[];
        kind: DOCUMENT;
        loc?: Location;
        tokenCount?: number;
    }

    Type Parameters

    • TResult = { [key: string]: any }
    • TVariables = { [key: string]: any }

    Hierarchy (View Summary)

    Index

    Properties

    __apiType?: (variables: TVariables) => TResult

    This type is used to ensure that the variables you pass in to the query are assignable to Variables and that the Result is assignable to whatever you pass your result to. The method is never actually implemented, but the type is valid because we list it as optional

    definitions: readonly DefinitionNode[]

    Top-level executable and type-system definitions in this document.

    kind: DOCUMENT

    The discriminator identifying the concrete AST or introspection kind.

    loc?: Location

    The source location for this AST node, if location tracking was enabled.

    tokenCount?: number

    The number of lexical tokens parsed for this document, if token counting was enabled.