UNPKG

@ephys/graphql-joi-directives

Version:

Adds Joi-powered constraint directive for GraphQL

13 lines (12 loc) 904 B
import { buildJoiFloatDirective, buildJoiFloatDirectiveTypedef } from './float'; import { buildJoiIntDirective, buildJoiIntDirectiveTypedef } from './int'; import { buildJoiListDirective, buildJoiListDirectiveTypedef } from './list'; import { buildJoiStrDirective, buildJoiStrDirectiveTypedef } from './str'; export { buildJoiStrDirective, buildJoiIntDirective, buildJoiFloatDirective, buildJoiListDirective, buildJoiStrDirectiveTypedef, buildJoiIntDirectiveTypedef, buildJoiFloatDirectiveTypedef, buildJoiListDirectiveTypedef, }; export declare const joiConstraintDirectives: { str: typeof import("graphql-tools").SchemaDirectiveVisitor; int: typeof import("graphql-tools").SchemaDirectiveVisitor; float: typeof import("graphql-tools").SchemaDirectiveVisitor; list: typeof import("graphql-tools").SchemaDirectiveVisitor; }; export declare const joiContraintDirectivesTypedefs: string[];