graphql-typed-client
Version:
A tool that generates a strongly typed client library for any GraphQL endpoint. The client allows writing GraphQL queries as plain JS objects (with type safety, awesome code completion experience, custom scalar type mapping, type guards and more)
9 lines (8 loc) • 353 B
TypeScript
import { Observable } from 'rxjs';
import { ClientOptions } from 'subscriptions-transport-ws';
import { Gql } from './requestToGql';
export interface SubscriptionCreatorOptions {
uri: string;
options?: ClientOptions;
}
export declare const getSubscriptionCreator: ({ uri, options }: SubscriptionCreatorOptions) => (gql: Gql) => Observable<any>;