mobility-toolbox-js
Version:
Toolbox for JavaScript applications in the domains of mobility and logistics.
16 lines (15 loc) • 589 B
TypeScript
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*
*
* @example
* ```ts
* const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
* ```
*
* The query argument is unknown!
* Please regenerate the types.
*/
export declare function graphql(source: string): unknown;
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;