Skip to content

Commit

Permalink
docs: fix TSDoc lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Sep 28, 2024
1 parent 5b989a6 commit 975147f
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ declare function accessors<T = unknown>( x: Array<T> ): GenericAccessorObject<T>
* '2': 3,
* '4': 4,
* 'length': 4
};
* };
* var obj = accessors( x );
* // returns {...}
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ declare function arraylike2object<T = unknown>( x: Array<T> ): GenericAccessorOb
* '2': 3,
* '4': 4,
* 'length': 4
};
* };
* var obj = arraylike2object( x );
* // returns {...}
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* Returns a filled "generic" array.
*
* @param value - fill value
* @param value - fill value,
* @param len - array length
* @returns output array
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ declare function filledarrayBy( array: Collection, dtype: DataType, clbk: Callba
* var arr = filledarrayBy( it, constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0, 1.0 ]
*/
declare function filledarrayBy( iterable: IterableIterator, callback: Callback, thisArg?: any ): ArrayOrTypedArray; // eslint-disable-line @typescript-eslint/unified-signatures
declare function filledarrayBy( iterable: IterableIterator, clbk: Callback, thisArg?: any ): ArrayOrTypedArray; // eslint-disable-line @typescript-eslint/unified-signatures

/**
* Creates a filled array from an iterable according to a callback function.
Expand All @@ -172,7 +172,7 @@ declare function filledarrayBy( iterable: IterableIterator, callback: Callback,
* var arr = filledarrayBy( it, 'float64', constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0, 1.0 ]
*/
declare function filledarrayBy( iterable: IterableIterator, dtype: DataType, callback: Callback, thisArg?: any ): ArrayOrTypedArray; // eslint-disable-line @typescript-eslint/unified-signatures
declare function filledarrayBy( iterable: IterableIterator, dtype: DataType, clbk: Callback, thisArg?: any ): ArrayOrTypedArray; // eslint-disable-line @typescript-eslint/unified-signatures

/**
* Returns a filled typed array view of an `ArrayBuffer` according to a provided callback function.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* var arr = logspace( 0, 2, 6 );
* // returns [ 1, ~2.5, ~6.31, ~15.85, ~39.81, 100 ]
*/
declare function logspace( x1: number, x2: number, len?: number ): Array<number>;
declare function logspace( a: number, b: number, len?: number ): Array<number>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ declare function promotionRules( dtype1: string, dtype2: string ): null;
/**
* Returns a type promotion table displaying array data types with the smallest size and closest "kind" to which array data types can be safely cast.
*
* @param dtype1 - array data type
* @param dtype2 - array data type
* @returns promotion rule table
*
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type MapFunction = Nullary | Unary | Binary | Ternary;
* Returns an iterator which iterates over each element in an array-like object.
*
* @param src - input value
* @param mapFc - function to invoke for each iterated value
* @param mapFcn - function to invoke for each iterated value
* @param thisArg - execution context
* @returns iterator
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type SwapFunction = ( x: ndarray, y: ndarray, dim?: number ) => ndarray;
*
* @param base - "base" function which interchanges two vectors
* @param dtype - array data type
* @returns function wrapper
*
* @example
* var Float64Array = require( '@stdlib/array/float64' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ interface Namespace {
* Parse a string representation of a 128-bit complex number.
*
* @param str - string representation of a complex number
* @returns Complex128 instance
* @throws must provide a string recognized as a complex number
* @returns Complex128 instance
*
* @example
* var str = '5 + 3i';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import { Complex128 } from '@stdlib/types/complex';
* Parse a string representation of a 128-bit complex number.
*
* @param str - string representation of a complex number
* @returns Complex128 instance
* @throws must provide a string recognized as a complex number
* @returns Complex128 instance
*
* @example
* var str = '5 + 3i';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ type Predicate<T, U> = Nullary<U> | Unary<T, U> | Binary<T, U>;
*
* @param iterator - source iterator
* @param predicate - predicate function
* @param thisArg - execution context
* @returns iterator
*
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ interface LoopOrderObject {
* var idx = o.idx;
* // returns [ 2, 1, 0 ]
*/
declare function nullaryLoopOrder( shape: ArrayLike<number>, stridesX: ArrayLike<number> ): LoopOrderObject;
declare function nullaryLoopOrder( sh: ArrayLike<number>, sx: ArrayLike<number> ): LoopOrderObject;


// EXPORTS //
Expand Down

0 comments on commit 975147f

Please sign in to comment.