@nestia/core
Version:
Super-fast validation decorators of NestJS
21 lines (20 loc) • 712 B
TypeScript
import { IValidation } from "typia";
export type IResponseBodyQuerifier<T> = IResponseBodyquerifier.IStringify<T> | IResponseBodyquerifier.IIs<T> | IResponseBodyquerifier.IAssert<T> | IResponseBodyquerifier.IValidate<T>;
export declare namespace IResponseBodyquerifier {
interface IStringify<T> {
type: "stringify";
stringify: (input: T) => URLSearchParams;
}
interface IIs<T> {
type: "is";
is: (input: T) => URLSearchParams | null;
}
interface IAssert<T> {
type: "assert";
assert: (input: T) => URLSearchParams;
}
interface IValidate<T> {
type: "validate";
validate: (input: T) => IValidation<URLSearchParams>;
}
}