UNPKG

@tsdotnet/string-builder

Version:

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/tsdotnet/string-builder/blob/master/LICENSE) ![npm-publish](https://github.com/tsdotnet/string-builder/workflows/npm-publish/badge.svg) [![npm vers

23 lines (22 loc) 691 B
/*! * @author electricessence / https://github.com/electricessence/ * .NET Reference: http://referencesource.microsoft.com/#mscorlib/system/text/StringBuilder.cs * Licensing: MIT */ export default class StringBuilder { private readonly _partArray; private _latest; constructor(...initial: any[]); newLine: string; setNewLine(newLine: string): this; appendSingle(item: unknown): this; appendThese(items: any[]): this; append(...items: any[]): this; appendLine(...items: any[]): this; appendLines(items: any[]): this; get isEmpty(): boolean; toString(): string; join(delimiter: string): string; clear(): void; dispose(): void; }