@microsoft/teams.cards
Version:
<p> <a href="https://www.npmjs.com/package/@microsoft/teams.cards" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.cards" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=code" ta
43 lines (40 loc) • 815 B
JavaScript
;
var base = require('../base');
class CodeBlock extends base.Element {
type;
/**
* which programming language to use.
*/
language;
/**
* code to display/highlight.
*/
codeSnippet;
/**
* which line number to display on the first line.
*/
startLineNumber;
constructor(options = {}) {
super();
this.type = "CodeBlock";
Object.assign(this, options);
}
static from(options) {
return new CodeBlock(options);
}
withLanguage(value) {
this.language = value;
return this;
}
withCode(value) {
this.codeSnippet = value;
return this;
}
withStartLineNumber(value) {
this.startLineNumber = value;
return this;
}
}
exports.CodeBlock = CodeBlock;
//# sourceMappingURL=code-block.js.map
//# sourceMappingURL=code-block.js.map