nitintutlani / typed-graphql

Typescript type definitions for graphql [Not Active]
MIT License
37 stars 17 forks source link

Add definition of specifiedRules for validation #12

Closed helfer closed 8 years ago

helfer commented 8 years ago

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.