UNPKG

typia

Version:

Superfast runtime validators with only one line

14 lines (11 loc) 447 B
import { HttpIsQueryProgrammer } from "../../../programmers/http/HttpIsQueryProgrammer"; import { ITransformProps } from "../../ITransformProps"; import { GenericTransformer } from "../../internal/GenericTransformer"; export namespace HttpIsQueryTransformer { export const transform = (props: ITransformProps) => GenericTransformer.scalar({ ...props, method: "http.isQuery", write: HttpIsQueryProgrammer.write, }); }