UNPKG

@incubrain/client

Version:

A type-safe GraphQL client for Hasura, optimized for Node.js and Nuxt environments with full TypeScript support.

10 lines (9 loc) 614 B
import type { GraphQLType } from "graphql"; import type { TypeCategory } from "./base-types"; export declare function determineTypeCategory(type: GraphQLType): TypeCategory; export declare function isView(type: GraphQLType): boolean; export declare function isAggregateType(typeName: string): boolean; export declare function shouldGenerateViewClient(type: GraphQLType): boolean; export declare function shouldGenerateAggregateClient(type: GraphQLType): boolean; export declare function shouldGenerateClient(type: GraphQLType, typeName: string): boolean; export declare function toPascalCase(str: string): string;