Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/string/base/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ interface Namespace {
*
* @example
* var out = ns.replaceBefore( 'Hello World!', '', 'foo', 0 );
* // returns 'Hello world!'
* // returns 'Hello World!'
*
* @example
* var out = ns.replaceBefore( 'Hello World!', 'xyz', 'foo', 0 );
Expand Down Expand Up @@ -1301,7 +1301,7 @@ interface Namespace {
*
* @example
* var out = ns.slice( 'foo bar', 2, 7 );
* // returns 'ar'
* // returns 'o bar'
*
* @example
* var out = ns.slice( 'foo bar', -1, 7 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ interface FormatIdentifier {
/**
* Flags.
*/
flags: string;
flags?: string;

/**
* Minimum field width (integer or `'*'`).
*/
width: string;
width?: string;

/**
* Precision (integer or `'*'`).
*/
precision: string;
precision?: string;

/**
* Positional mapping from format specifier to argument index.
*/
mapping: number;
mapping?: number;
}

type StringOrToken = string | FormatIdentifier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// TypeScript Version: 2.0
// TypeScript Version: 4.1

/**
* Removes the last `n` Unicode code points of a string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// TypeScript Version: 2.0
// TypeScript Version: 4.1

/**
* Removes the last `n` grapheme clusters (i.e., user-perceived characters) of a string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// TypeScript Version: 2.0
// TypeScript Version: 4.1

/**
* Removes the last `n` UTF-16 code units of a string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
*
* @example
* var out = replaceBefore( 'Hello World!', '', 'foo', 0 );
* // returns 'Hello world!'
* // returns 'Hello World!'
*
* @example
* var out = replaceBefore( 'Hello World!', 'xyz', 'foo', 0 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// TypeScript Version: 2.0
// TypeScript Version: 4.1

/**
* Reverses the Unicode code points of a string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// TypeScript Version: 2.0
// TypeScript Version: 4.1

/**
* Reverses the grapheme clusters (i.e., user-perceived characters) of a string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// TypeScript Version: 2.0
// TypeScript Version: 4.1

/**
* Reverses the UTF-16 code units of a string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// TypeScript Version: 4.1

/**
* Trims whitespace from the end of a string.
* Trims whitespace characters from the end of a string.
*
* @param str - input string
* @returns trimmed string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*
* @example
* var out = slice( 'foo bar', 2, 7 );
* // returns 'ar'
* // returns 'o bar'
*
* @example
* var out = slice( 'foo bar', -1, 7 );
Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/string/first/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ interface Options {
* @param str - input string
* @param n - number of characters to return
* @param options - options
* @returns updated string
* @returns output string
*
* @example
* var out = first( 'last man standing', 2 );
Expand All @@ -63,7 +63,7 @@ declare function first( str: string, n: number, options?: Options ): string;
*
* @param str - input string
* @param options - options
* @returns updated string
* @returns output string
*
* @example
* var out = first( 'last man standing', {
Expand All @@ -84,7 +84,7 @@ declare function first( str: string, options?: Options ): string;
*
* @param str - input string
* @param n - number of characters to return (default: 1)
* @returns updated string
* @returns output string
*
* @example
* var out = first( 'last man standing' );
Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/string/last/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ interface Options {
* @param str - input string
* @param n - number of characters to return
* @param options - options
* @returns updated string
* @returns output string
*
* @example
* var out = last( 'last man standing', 2 );
Expand All @@ -63,7 +63,7 @@ declare function last( str: string, n: number, options?: Options ): string;
*
* @param str - input string
* @param options - options
* @returns updated string
* @returns output string
*
* @example
* var out = last( 'last man standing', {
Expand All @@ -84,7 +84,7 @@ declare function last( str: string, options?: Options ): string;
*
* @param str - input string
* @param n - number of characters to return (default: 1)
* @returns updated string
* @returns output string
*
* @example
* var out = last( 'last man standing' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// TypeScript Version: 2.0
// TypeScript Version: 4.1

/**
* Returns the number of code points in a string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ declare function removeFirst( str: string, n: number, options?: Options ): strin
* // returns 'ast man standing'
*
* @example
* var out = removeFirst( '🐶🐮🐷🐰🐸', 2, {
* var out = removeFirst( '🐶🐮🐷🐰🐸', {
* 'mode': 'grapheme'
* });
* // returns '🐷🐰🐸'
* // returns '🐮🐷🐰🐸'
*/
declare function removeFirst( str: string, options?: Options ): string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

// TypeScript Version: 4.1

/// <reference types="@stdlib/types"/>

/**
* Trims `n` characters from the end of a string.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import rtrimN = require( './index' );
// The function returns a string...
{
rtrimN( ' abc ', 3 ); // $ExpectType string
rtrimN( '~~~abc~~~', 3, '~' ); // $ExpectType
rtrimN( '~~~abc~~~', 3, '~' ); // $ExpectType string
}

// The compiler throws an error if the function is provided arguments having invalid types...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// TypeScript Version: 4.1

/**
* Trims whitespace from the end of a string.
* Trims whitespace characters from the end of a string.
*
* @param str - input string
* @returns trimmed string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Returns the part of a string after the last occurrence of a specified substring.
*
* @param str - input string
* @param search - search value
* @param search - search string
* @param fromIndex - index of last character to be considered beginning of a match (default: `str.length`)
* @returns substring
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Returns the part of a string before the last occurrence of a specified substring.
*
* @param str - input string
* @param search - search value
* @param search - search string
* @returns substring
*
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ interface Grapheme {
* @returns emoji property
*
* @example
* var out = emojiProperty( 0x23EC );
* var out = grapheme.emojiProperty( 0x23EC );
* // returns 101
*
* @example
* var out = emojiProperty( 0x1FFFE );
* var out = grapheme.emojiProperty( 0x1FFFE );
* // returns 11
*/
emojiProperty( code: number ): number;
Expand Down
Loading