UNPKG

type-graphql

Version:

Create GraphQL schema and resolvers with TypeScript, using classes and decorators!

4 lines (3 loc) • 310 B
import { TypeValue } from "../decorators/types"; import { ValidateSettings } from "../schema/build-context"; export declare function validateArg<T extends object>(argValue: T | undefined, argType: TypeValue, globalValidate: ValidateSettings, argValidate: ValidateSettings | undefined): Promise<T | undefined>;