graphql-binding
Version:
[](https://circleci.com/gh/graphql-binding/graphql-binding) [](https://badge.fury.io/js/graphql-binding)
10 lines (9 loc) • 639 B
TypeScript
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;