UNPKG

805 BJavaScriptView Raw
1"use strict";
2// Copyright (c) Microsoft Corporation.
3// Licensed under the MIT License.
4Object.defineProperty(exports, "__esModule", { value: true });
5exports.LogicT = exports.INodeSocketT = exports.INodeBufferT = void 0;
6/* eslint-disable @typescript-eslint/no-explicit-any */
7const z = require("zod");
8exports.INodeBufferT = z.custom(Buffer.isBuffer, { message: 'INodeBufferT' });
9exports.INodeSocketT = z.custom((val) => typeof val.emit === 'function' &&
10 typeof val.end === 'function' &&
11 typeof val.off === 'function' &&
12 typeof val.on === 'function' &&
13 typeof val.once === 'function' &&
14 typeof val.pipe === 'function' &&
15 typeof val.write === 'function', { message: 'INodeSocket' });
16exports.LogicT = z.custom((val) => typeof val === 'function');
17//# sourceMappingURL=zod.js.map
\No newline at end of file