UNPKG

visual-graphql

Version:

A lightweight GraphQL schema visualization tool built with SolidJS

13 lines (12 loc) 952 B
export declare function typeNameToId(typeName: string): string; export declare function extractTypeName(typeStr: string): string; export declare function fieldNameToId(fieldName: string): string; export declare function typeObjToId(typeObj: any): string; export declare function generateEdgeId(fromId: string, toId: string): string; export declare function mapFields(typeObj: any, callback: (id: string, field: any) => string | null): string[]; export declare function mapPossibleTypes(typeObj: any, callback: (id: string, type: any) => string | null): string[]; export declare function mapDerivedTypes(schema: any, typeObj: any, callback: (id: string, type: any) => string | null): string[]; export declare function getNamedType(type: any): any; export declare function stringifyType(type: any): string; export declare function isLeafType(type: any): boolean; export declare function formatDescription(description: string | null | undefined): string;