1 | "use strict";
|
2 |
|
3 |
|
4 | Object.defineProperty(exports, "__esModule", { value: true });
|
5 | exports.LogicT = exports.INodeSocketT = exports.INodeBufferT = void 0;
|
6 |
|
7 | const z = require("zod");
|
8 | exports.INodeBufferT = z.custom(Buffer.isBuffer, { message: 'INodeBufferT' });
|
9 | exports.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' });
|
16 | exports.LogicT = z.custom((val) => typeof val === 'function');
|
17 |
|
\ | No newline at end of file |