UNPKG

@accounter/server

Version:

The test suite is split into three Vitest projects for efficiency and isolation:

15 lines (14 loc) 538 B
import pg from 'pg'; import type { AdminContext } from './plugins/admin-context-plugin.js'; import type { UserType } from './plugins/auth-plugin.js'; import type { Environment } from './shared/types/index.js'; declare global { namespace GraphQLModules { interface GlobalContext { env: Environment; currentUser: UserType; adminContext: AdminContext; } } } export declare function createGraphQLApp(env: Environment, pool: pg.Pool): Promise<import("graphql-modules").Application>;