UNPKG

graphql-binding

Version:

[![CircleCI](https://circleci.com/gh/graphql-binding/graphql-binding.svg?style=shield)](https://circleci.com/gh/graphql-binding/graphql-binding) [![npm version](https://badge.fury.io/js/graphql-binding.svg)](https://badge.fury.io/js/graphql-binding)

10 lines (9 loc) 639 B
export declare type GeneratorType = 'typescript' | 'javascript'; export declare type Interpolation<P> = FlattenInterpolation<P> | ReadonlyArray<FlattenInterpolation<P> | ReadonlyArray<FlattenInterpolation<P>>>; export declare type FlattenInterpolation<P> = InterpolationValue | InterpolationFunction<P>; export declare type InterpolationValue = string | number | boolean; export declare type SimpleInterpolation = InterpolationValue | ReadonlyArray<InterpolationValue | ReadonlyArray<InterpolationValue>>; export interface InterpolationFunction<P> { (props: P): Interpolation<P>; } export declare type Maybe<T> = null | undefined | T;