Skip to content

Commit

Permalink
buildSchema: Make options optional (#1270)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored and leebyron committed Mar 5, 2018
1 parent 323f2d2 commit 65fb6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/buildASTSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ function getLeadingCommentBlock(node): void | string {
*/
export function buildSchema(
source: string | Source,
options: BuildSchemaOptions & ParseOptions,
options?: BuildSchemaOptions & ParseOptions,
): GraphQLSchema {
return buildASTSchema(parse(source, options), options);
}

0 comments on commit 65fb6ae

Please sign in to comment.