UNPKG

@accounts/module-core

Version:

Server side GraphQL transport for accounts

14 lines (13 loc) 644 B
import { type User, type IContext } from '@accounts/types'; import { type AccountsServerOptions } from '@accounts/server'; export * from './utils'; export * from './models'; export interface AccountsCoreModuleConfig extends AccountsServerOptions { rootQueryName?: string; rootMutationName?: string; extendTypeDefs?: boolean; withSchemaDefinition?: boolean; userAsInterface?: boolean; } export type AccountsContextGraphQLModules<IUser extends User = User> = IContext<IUser> & GraphQLModules.ModuleContext; export declare const createAccountsCoreModule: (config: AccountsCoreModuleConfig) => import("graphql-modules").Module;