Skip to content

Commit

Permalink
Add a notice for borrowed code
Browse files Browse the repository at this point in the history
  • Loading branch information
octogonz committed Nov 21, 2023
1 parent bea0cdf commit d698ca7
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.

// ----------------------------------------------------------------------------------------------------------
// TO AVOID EXTRA DEPENDENCIES, THE CODE IN THIS FILE WAS BORROWED FROM:
//
// rushstack/libraries/terminal/src/PrintUtilities.ts
//
// KEEP IT IN SYNC WITH THAT FILE.
// ----------------------------------------------------------------------------------------------------------

/**
* Applies word wrapping and returns an array of lines.
*
* @param text - The text to wrap
* @param maxLineLength - The maximum length of a line, defaults to the console width
* @param indent - The number of spaces to indent the wrapped lines, defaults to 0
*/

export function wrapWordsToLines(text: string, maxLineLength?: number, indent?: number): string[];
/**
* Applies word wrapping and returns an array of lines.
Expand Down

0 comments on commit d698ca7

Please sign in to comment.