Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Flow: Use $ReadOnlyArray for 'validationRules' option
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Jul 3, 2019
1 parent edb37c8 commit 4fd3cab
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 4fd3cab

Please sign in to comment.