UNPKG

@matatbread/typia

Version:

Superfast runtime validators with only one line

128 lines 2.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.message = message; exports.decode = decode; exports.assertDecode = assertDecode; exports.isDecode = isDecode; exports.validateDecode = validateDecode; exports.encode = encode; exports.assertEncode = assertEncode; exports.isEncode = isEncode; exports.validateEncode = validateEncode; exports.createDecode = createDecode; exports.createIsDecode = createIsDecode; exports.createAssertDecode = createAssertDecode; exports.createValidateDecode = createValidateDecode; exports.createEncode = createEncode; exports.createIsEncode = createIsEncode; exports.createAssertEncode = createAssertEncode; exports.createValidateEncode = createValidateEncode; /** * @internal */ function message() { halt("message"); } /** * @internal */ function decode() { halt("decode"); } /** * @internal */ function assertDecode() { halt("assertDecode"); } /** * @internal */ function isDecode() { halt("isDecode"); } /** * @internal */ function validateDecode() { halt("validateDecode"); } /** * @internal */ function encode() { halt("encode"); } /** * @internal */ function assertEncode() { halt("assertEncode"); } /** * @internal */ function isEncode() { halt("isEncode"); } /** * @internal */ function validateEncode() { halt("validateEncode"); } /** * @internal */ function createDecode() { halt("createDecode"); } /** * @internal */ function createIsDecode() { halt("createIsDecode"); } /** * @internal */ function createAssertDecode() { halt("createAssertDecode"); } /** * @internal */ function createValidateDecode() { halt("createValidateDecode"); } /** * @internal */ function createEncode() { halt("createEncode"); } /** * @internal */ function createIsEncode() { halt("createIsEncode"); } /** * @internal */ function createAssertEncode() { halt("createAssertEncode"); } /** * @internal */ function createValidateEncode() { halt("createValidateEncode"); } /** * @internal */ function halt(name) { throw new Error(`Error on typia.protobuf.${name}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`); } //# sourceMappingURL=protobuf.js.map