UNPKG

@microsoft/botbuilder-m365

Version:

M365 extensions for Microsoft BotBuilder, Alpha release.

39 lines 928 B
"use strict"; /** * @module botbuilder-m365 */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.TextBlock = void 0; const Block_1 = require("./Block"); /** * @private */ class TextBlock extends Block_1.Block { constructor(content, startIndex, endIndex) { super(); if (typeof startIndex == 'number') { this.content = content.substring(startIndex, endIndex); } else { this.content = content; } } get type() { return Block_1.BlockTypes.Text; } isValid() { return { valid: true, error: '' }; } render(context, state) { return this.content; } } exports.TextBlock = TextBlock; //# sourceMappingURL=TextBlock.js.map