UNPKG

@graphiql/react

Version:

[Changelog](https://github.com/graphql/graphiql/blob/main/packages/graphiql-react/CHANGELOG.md) | [API Docs](https://graphiql-test.netlify.app/typedoc/modules/graphiql_react.html) | [NPM](https://www.npmjs.com/package/@graphiql/react)

18 lines (17 loc) 589 B
import { GraphQLArgument, GraphQLField, GraphQLInputField, GraphQLNamedType } from 'graphql'; import './search.css'; export declare function Search(): import("react/jsx-runtime").JSX.Element | null; declare type TypeMatch = { type: GraphQLNamedType; }; declare type FieldMatch = { type: GraphQLNamedType; field: GraphQLField<unknown, unknown> | GraphQLInputField; argument?: GraphQLArgument; }; export declare function useSearchResults(caller?: Function): (searchValue: string) => { within: FieldMatch[]; types: TypeMatch[]; fields: FieldMatch[]; }; export {};