Skip to content

Commit

Permalink
Flow: Use $ReadOnlyArray for 'validationRules' option (graphql#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored and jliu670 committed Aug 14, 2020
1 parent b47f2c1 commit 038fcca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export type OptionsData = {|
* An optional array of validation rules that will be applied on the document
* in additional to those defined by the GraphQL spec.
*/
validationRules?: ?Array<(ValidationContext) => ASTVisitor>,
validationRules?: ?$ReadOnlyArray<(ValidationContext) => ASTVisitor>,

/**
* An optional function which will be used to validate instead of default `validate`
Expand Down

0 comments on commit 038fcca

Please sign in to comment.