botbuilder-dialogs
Version:
A dialog stack based conversation manager for Microsoft BotBuilder.
24 lines • 908 B
JavaScript
/**
* @module botbuilder-dialogs
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.isComponentPathResolvers = void 0;
const z = require("zod");
const componentPathResolvers = z.custom((val) => typeof val.getPathResolvers === 'function', { message: 'ComponentPathResolvers' });
/**
* Check if a [ComponentRegistration](xref:botbuilder-core.ComponentRegistration) is
* [ComponentPathResolvers](xref:botbuilder-dialogs.ComponentPathResolvers) or not.
*
* @param {any} component The component registration.
* @returns {boolean} Type check result.
*/
function isComponentPathResolvers(component) {
return componentPathResolvers.check(component);
}
exports.isComponentPathResolvers = isComponentPathResolvers;
//# sourceMappingURL=componentPathResolvers.js.map
;