UNPKG

typia

Version:

Superfast runtime validators with only one line

14 lines (11 loc) 476 B
import { ProtobufIsEncodeProgrammer } from "../../../programmers/protobuf/ProtobufIsEncodeProgrammer"; import { ITransformProps } from "../../ITransformProps"; import { GenericTransformer } from "../../internal/GenericTransformer"; export namespace ProtobufIsEncodeTransformer { export const transform = (props: ITransformProps) => GenericTransformer.scalar({ ...props, method: "protobuf.isEncode", write: ProtobufIsEncodeProgrammer.write, }); }