Interface TypedDocumentNode<TResult, TVariables>

Document

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

Type Parameters

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

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

Hierarchy (view full)

Properties

__apiType?: ((variables) => 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

Type declaration

    • (variables): 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

      Parameters

      Returns TResult

definitions: readonly DefinitionNode[]
kind: DOCUMENT
loc?: Location

Generated using TypeDoc