Technically this should be Array<ValidationRule> where ValidationRule is Function(context: ValidationContext) for the ValidationContext here: https://github.com/graphql/graphql-js/blob/master/src/validation/validate.js#L92, but I'm not sure how to write that. Maybe someone more versed with TypeScript can give it a try. For the time being Array<any> will at least make specifiedRules importable.
Technically this should be
Array<ValidationRule>
whereValidationRule
isFunction(context: ValidationContext)
for theValidationContext
here: https://github.com/graphql/graphql-js/blob/master/src/validation/validate.js#L92, but I'm not sure how to write that. Maybe someone more versed with TypeScript can give it a try. For the time beingArray<any>
will at least makespecifiedRules
importable.