UNPKG

@maddimathon/utility-typescript

Version:

TypeScript utilities (types, functions, classes) to use in various projects.

23 lines 513 B
/** * @since 0.1.0 * * @packageDocumentation */ /*! * @maddimathon/utility-typescript@2.0.0-beta * @license MIT */ /** * Takes an input string and inserts `\n` to soft wrap text within the given width. * * @category Formatters * * @param text Text to wrap. * @param maxWidth Optional. Max number of characters per line. * * @return Wrapped text. * * @since 0.1.0 */ export declare function softWrapText(text: string, maxWidth?: number): string; //# sourceMappingURL=softWrapText.d.ts.map