UNPKG

botbuilder

Version:

Bot Builder is a framework for building rich bots on virtually any platform.

16 lines 749 B
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); exports.LogicT = exports.INodeSocketT = exports.INodeBufferT = void 0; const z = require("zod"); exports.INodeBufferT = z.custom(Buffer.isBuffer, { message: 'INodeBufferT' }); exports.INodeSocketT = z.custom((val) => typeof val.emit === 'function' && typeof val.end === 'function' && typeof val.off === 'function' && typeof val.on === 'function' && typeof val.once === 'function' && typeof val.pipe === 'function' && typeof val.write === 'function', { message: 'INodeSocket' }); exports.LogicT = z.custom((val) => typeof val === 'function'); //# sourceMappingURL=zod.js.map