@microsoft/teams.common
Version:
<p> <a href="https://www.npmjs.com/package/@microsoft/teams.common" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.common/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.common?activeTa
37 lines (35 loc) • 1.1 kB
text/typescript
type StringLike = {
toString(): string;
};
declare class String implements StringLike {
private _value;
constructor(value?: string);
clear(): this;
append(...text: StringLike[]): this;
reset(): this;
bold(text: StringLike): this;
italic(text: StringLike): this;
underline(text: StringLike): this;
strike(text: StringLike): this;
black(text: StringLike): this;
bgBlack(text: StringLike): this;
red(text: StringLike): this;
bgRed(text: StringLike): this;
green(text: StringLike): this;
bgGreen(text: StringLike): this;
yellow(text: StringLike): this;
bgYellow(text: StringLike): this;
blue(text: StringLike): this;
bgBlue(text: StringLike): this;
magenta(text: StringLike): this;
bgMagenta(text: StringLike): this;
cyan(text: StringLike): this;
bgCyan(text: StringLike): this;
white(text: StringLike): this;
bgWhite(text: StringLike): this;
gray(text: StringLike): this;
default(text: StringLike): this;
bgDefault(text: StringLike): this;
toString(): string;
}
export { String };