UNPKG

804 BTypeScriptView Raw
1import { GraphQLField, GraphQLSchema, GraphQLType } from 'graphql';
2import { CompletionItemBase, AllTypeInfo } from 'graphql-language-service-types';
3import { ContextTokenUnion, State } from 'graphql-language-service-parser';
4export declare function getDefinitionState(tokenState: State): State | null | undefined;
5export declare function getFieldDef(schema: GraphQLSchema, type: GraphQLType, fieldName: string): GraphQLField<any, any> | null | undefined;
6export declare function forEachState(stack: State, fn: (state: State) => AllTypeInfo | null | void): void;
7export declare function objectValues<T>(object: Record<string, T>): Array<T>;
8export declare function hintList<T extends CompletionItemBase>(token: ContextTokenUnion, list: Array<T>): Array<T>;
9//# sourceMappingURL=autocompleteUtils.d.ts.map
\No newline at end of file