@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) • 704 B
JavaScript
;
var base = require('../base');
class FactSet extends base.Element {
type;
/**
* The array of `Fact`'s
*/
facts;
constructor(...facts) {
super();
this.type = "FactSet";
this.facts = facts;
}
withOptions(value) {
Object.assign(this, value);
return this;
}
addFacts(...value) {
this.facts.push(...value);
return this;
}
}
class Fact {
/**
* The title of the fact.
*/
title;
/**
* The value of the fact.
*/
value;
constructor(title, value) {
this.title = title;
this.value = value;
}
}
exports.Fact = Fact;
exports.FactSet = FactSet;
//# sourceMappingURL=fact-set.js.map
//# sourceMappingURL=fact-set.js.map