UNPKG

graphile-utils

Version:
12 lines (11 loc) 465 B
import { DocumentNode } from "graphql"; declare const $$embed: unique symbol; export interface GraphileEmbed<T = any> { [$$embed]: true; kind: "GraphileEmbed"; value: T; } export declare function isEmbed(obj: any): obj is GraphileEmbed; export declare function embed<T>(value: T): GraphileEmbed<T>; export declare function gql(strings: TemplateStringsArray, ...interpolatedValues: Array<string | GraphileEmbed | DocumentNode>): DocumentNode; export {};