Skip to content

Commit

Permalink
Export "ValidationRule" type (#1504)
Browse files Browse the repository at this point in the history
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 e36368e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Expand Up @@ -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';

Expand Down
1 change: 1 addition & 0 deletions src/validation/index.js
Expand Up @@ -10,6 +10,7 @@
export { validate } from './validate';

export { ValidationContext } from './ValidationContext';
export type { ValidationRule } from './ValidationContext';

export { specifiedRules } from './specifiedRules';

Expand Down

0 comments on commit e36368e

Please sign in to comment.