mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
* Mark properties defined in Annex B as deprecated * Tweak * Update baselines * Update fourslash tests * Add completionsStringMethods.ts test * Fix sortText value in fourslash test for deprecated tags * Update package-lock.json * Update package-lock.json * Mark Non-standard RegExp Constructor properties as deprecated * Update baselines Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
20 lines
694 B
TypeScript
20 lines
694 B
TypeScript
interface String {
|
|
/** Removes the trailing white space and line terminator characters from a string. */
|
|
trimEnd(): string;
|
|
|
|
/** Removes the leading white space and line terminator characters from a string. */
|
|
trimStart(): string;
|
|
|
|
/**
|
|
* Removes the leading white space and line terminator characters from a string.
|
|
* @deprecated A legacy feature for browser compatibility. Use `trimStart` instead
|
|
*/
|
|
trimLeft(): string;
|
|
|
|
/**
|
|
* Removes the trailing white space and line terminator characters from a string.
|
|
* @deprecated A legacy feature for browser compatibility. Use `trimEnd` instead
|
|
*/
|
|
trimRight(): string;
|
|
}
|