UNPKG

shyft

Version:

Model driven GraphQL API framework

27 lines (26 loc) 1.76 kB
import { GraphQLError } from 'graphql'; export declare function generateTypeName(name: any): string; export declare function pascalCase(str: any): any; export declare function plural(str: any): any; export declare function generateTypeNamePascalCase(name: any): any; export declare function generateTypeNamePlural(name: any): any; export declare function generateTypeNamePluralPascalCase(name: any): any; export declare function generateTypeNameUpperCase(name: any): string; export declare const toBase64: (value: any) => string; export declare const fromBase64: (value: any) => string; export declare const serializeCursor: (cursor: any) => string; export declare const deserializeCursor: (cursor: any) => any; export declare const addRelayTypePromoterToInstance: (typeName: any, instance: any) => any; export declare const addRelayTypePromoterToList: (typeName: any, list: any) => any; export declare const addRelayTypePromoterToInstanceFn: (typeName: any) => (instance: any) => any; export declare const addRelayTypePromoterToListFn: (typeName: any) => (list: any) => any; export declare const translateInstance: (entity: any, instance: any, { i18nLanguage, i18nDefaultLanguage, i18nLanguageDisableFallback }: { i18nLanguage: any; i18nDefaultLanguage: any; i18nLanguageDisableFallback: any; }) => any; export declare const translateList: (entity: any, list: any, context: any) => any; export declare const translateInstanceFn: (entity: any, context: any) => (instance: any) => any; export declare const translateListFn: (entity: any, context: any) => (list: any) => any; export declare const gql: (template: TemplateStringsArray, ...substitutions: any[]) => string; export declare const formatGraphQLError: (err: GraphQLError) => GraphQLError;