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

Flow: Use $ReadOnlyArray for 'validationRules' option #529

Merged
merged 1 commit into from
Jul 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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