Permalink
Browse files

Export "ValidationRule" type (#1504)

Intended to be used here:
https://github.com/graphql/express-graphql/blob/ab2262fa60f9f6e38a626642f08573c7698628a6/src/index.js#L84
And in other similar tools that accept validation rules.
  • Loading branch information...
IvanGoncharov committed Sep 6, 2018
1 parent ea9dcfb commit e36368e475c38039ec03fd26b273bd52003dfad4
Showing with 3 additions and 0 deletions.
  1. +2 −0 src/index.js
  2. +1 −0 src/validation/index.js
View
@@ -321,6 +321,8 @@ export {
VariablesInAllowedPositionRule,
} from './validation';
export type { ValidationRule } from './validation';
// Create, format, and print GraphQL errors.
export { GraphQLError, formatError, printError } from './error';
View
@@ -10,6 +10,7 @@
export { validate } from './validate';
export { ValidationContext } from './ValidationContext';
export type { ValidationRule } from './ValidationContext';
export { specifiedRules } from './specifiedRules';

0 comments on commit e36368e

Please sign in to comment.