@maddimathon/utility-typescript
Version:
TypeScript utilities (types, functions, classes) to use in various projects.
23 lines (22 loc) • 482 B
TypeScript
/**
* @since 0.1.0
*
* @packageDocumentation
*/
/*!
* @maddimathon/utility-typescript@2.0.0-beta.5
* @license MIT
*/
/**
* Takes an input string and inserts `\n` to soft wrap text within the given width.
*
* @category Functions – String
*
* @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;