graphql-yoga
Version:
4 lines (3 loc) • 331 B
text/typescript
import type { IExecutableSchemaDefinition } from '@graphql-tools/schema';
import type { GraphQLSchemaWithContext, YogaInitialContext } from './types.cjs';
export declare function createSchema<TContext = {}>(opts: IExecutableSchemaDefinition<TContext & YogaInitialContext>): GraphQLSchemaWithContext<TContext & YogaInitialContext>;