Skip to content

Commit

Permalink
Add schema printer options
Browse files Browse the repository at this point in the history
These were added with graphql/graphql-js#927, RFC: Descriptions as strings.
  • Loading branch information
mattleff authored Jan 25, 2018
1 parent c54b691 commit 768ba04
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions types/graphql/utilities/schemaPrinter.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { GraphQLSchema } from '../type/schema';
import { GraphQLType } from '../type/definition';

export function printSchema(schema: GraphQLSchema): string;
export interface PrinterOptions {
[key: string]: any;
}

export function printIntrospectionSchema(schema: GraphQLSchema): string;
export function printSchema(schema: GraphQLSchema, options?: PrinterOptions): string;

export function printType(type: GraphQLType): string;
export function printIntrospectionSchema(schema: GraphQLSchema, options?: PrinterOptions): string;

export function printType(type: GraphQLType, options?: PrinterOptions): string;

0 comments on commit 768ba04

Please sign in to comment.