UNPKG

@graphql-mesh/serve-runtime

Version:
5 lines (4 loc) 320 B
import type { GraphQLSchema } from 'graphql'; import type { MaybePromise } from '@graphql-tools/utils'; import type { MeshServePlugin } from './types'; export declare function useChangingSchema(getSchema: () => MaybePromise<GraphQLSchema>, schemaChanged: (cb: (schema: GraphQLSchema) => void) => void): MeshServePlugin;