UNPKG

botbuilder-dialogs

Version:

A dialog stack based conversation manager for Microsoft BotBuilder.

26 lines 902 B
"use strict"; /** * @module botbuilder-dialogs */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.isComponentMemoryScopes = void 0; const z = require("zod"); const componentMemoryScopes = z.custom((val) => typeof val.getMemoryScopes === 'function', { message: 'ComponentMemoryScopes', }); /** * Check if a [ComponentRegistration](xref:botbuilder-core.ComponentRegistration) is * [ComponentMemoryScopes](xref:botbuilder-dialogs.ComponentMemoryScopes) or not. * * @param {any} component The component registration. * @returns {boolean} Type check result. */ function isComponentMemoryScopes(component) { return componentMemoryScopes.check(component); } exports.isComponentMemoryScopes = isComponentMemoryScopes; //# sourceMappingURL=componentMemoryScopes.js.map