UNPKG

@corejam/base

Version:

A scaffolding for building progressive GraphQL powered jamstack applications

22 lines (21 loc) 610 B
import { ASTNode } from "graphql"; export declare type Variables = { [key: string]: any; }; /** * This function is used for our Stencil Hydrate render process. * We mix this into our coreState client by checking if we are on the server * or on the client (Browser). * * This should only ever be used on the server. * * We inject this query method so we can use the same interface on both the server & * on the client: client.query({query}) * */ export declare function createServerClient(): { query: (input: { query: ASTNode; variables?: Variables; }) => Promise<any>; };