Skip to content

Commit

Permalink
build: remove tslint directives
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Nov 12, 2023
1 parent de1a221 commit de93ae0
Show file tree
Hide file tree
Showing 31 changed files with 52 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ declare function getter( dtype: 'complex64' ): GetComplex64;
* var v = get( arr, 2 );
* // returns 3
*/
declare function getter<T = unknown>( dtype: string ): GetArrayLike<T>; // tslint:disable-line:no-unnecessary-generics
declare function getter<T = unknown>( dtype: string ): GetArrayLike<T>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ declare function setter( dtype: 'complex64' ): SetComplex64;
* var v = arr.get( 2 );
* // returns 3
*/
declare function setter<T = unknown>( dtype: string ): SetArrayLike<T>; // tslint:disable-line:no-unnecessary-generics
declare function setter<T = unknown>( dtype: string ): SetArrayLike<T>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ declare function filledndBy<T = unknown, V = unknown>( shape: Shape10D, clbk: Ca
* var out = filledndBy( [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3 ], constantFunction( 1.0 ) );
* // returns [ [ [ [ [ [ [ [ [ [ [ 1.0, 1.0, 1.0 ] ] ] ] ] ] ] ] ] ]
*/
declare function filledndBy<T = unknown, V = unknown>( shape: Shape, clbk: Callback<T, V>, thisArg?: ThisParameterType<Callback<T, V>> ): Array<T>; // tslint:disable-line:no-unnecessary-generics
declare function filledndBy<T = unknown, V = unknown>( shape: Shape, clbk: Callback<T, V>, thisArg?: ThisParameterType<Callback<T, V>> ): Array<T>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ declare function fillednd<T = unknown>( value: T, shape: Shape10D ): Array10D<T>
* var out = fillednd( 'beep', [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3 ] );
* // returns [ [ [ [ [ [ [ [ [ [ [ 'beep', 'beep', 'beep' ] ] ] ] ] ] ] ] ] ]
*/
declare function fillednd<T = unknown, U = unknown>( value: T, shape: Shape ): Array<U>; // tslint:disable-line:no-unnecessary-generics
declare function fillednd<T = unknown, U = unknown>( value: T, shape: Shape ): Array<U>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ declare function getter( dtype: 'uint8c' ): GetUint8c;
* var v = get( arr, 2 );
* // returns 3
*/
declare function getter<T = unknown>( dtype: 'generic' ): GetGeneric<T>; // tslint:disable-line:no-unnecessary-generics
declare function getter<T = unknown>( dtype: 'generic' ): GetGeneric<T>;

/**
* Returns an accessor function for retrieving an element from an indexed array-like object.
Expand All @@ -304,7 +304,7 @@ declare function getter<T = unknown>( dtype: 'generic' ): GetGeneric<T>; // tsli
* var v = get( arr, 2 );
* // returns 3
*/
declare function getter<T = unknown>( dtype: string ): GetArrayLike<T>; // tslint:disable-line:no-unnecessary-generics
declare function getter<T = unknown>( dtype: string ): GetArrayLike<T>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ declare function onesnd( shape: Shape10D ): Array10D<number>;
* var out = onesnd( [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3 ] );
* // returns [ [ [ [ [ [ [ [ [ [ [ 1.0, 1.0, 1.0 ] ] ] ] ] ] ] ] ] ]
*/
declare function onesnd<T = unknown>( shape: Collection<number> ): Array<T>; // tslint:disable-line:no-unnecessary-generics
declare function onesnd<T = unknown>( shape: Collection<number> ): Array<T>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ declare function setter( dtype: 'uint8c' ): SetUint8c;
* var v = arr[ 2 ];
* // returns 3
*/
declare function setter<T = unknown>( dtype: 'generic' ): SetGeneric<T>; // tslint:disable-line:no-unnecessary-generics
declare function setter<T = unknown>( dtype: 'generic' ): SetGeneric<T>;

/**
* Returns an accessor function for setting an element in an indexed array-like object.
Expand All @@ -326,7 +326,7 @@ declare function setter<T = unknown>( dtype: 'generic' ): SetGeneric<T>; // tsli
* var v = arr[ 2 ];
* // returns 3
*/
declare function setter<T = unknown>( dtype: string ): SetArrayLike<T>; // tslint:disable-line:no-unnecessary-generics
declare function setter<T = unknown>( dtype: string ): SetArrayLike<T>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ declare function zerosnd( shape: Shape10D ): Array10D<number>;
* var out = zerosnd( [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3 ] );
* // returns [ [ [ [ [ [ [ [ [ [ [ 0.0, 0.0, 0.0 ] ] ] ] ] ] ] ] ] ]
*/
declare function zerosnd<T = unknown>( shape: Shape ): Array<T>; // tslint:disable-line:no-unnecessary-generics
declare function zerosnd<T = unknown>( shape: Shape ): Array<T>;


// EXPORTS //
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/ndarray/array/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ interface ExtendedOptions extends Options {
* var v = arr.get( 0 );
* // returns [ 1, 2 ]
*/
declare function array<T = unknown>( options: OptionsWithShape | OptionsWithBuffer ): typedndarray<T>; // tslint:disable-line:no-unnecessary-generics
declare function array<T = unknown>( options: OptionsWithShape | OptionsWithBuffer ): typedndarray<T>;

/**
* Returns a multidimensional array.
Expand Down Expand Up @@ -220,7 +220,7 @@ declare function array<T = unknown>( options: OptionsWithShape | OptionsWithBuff
* var v = arr.get( 0, 0 );
* // returns 1.0
*/
declare function array<T = unknown>( buffer: ArrayLike<any>, options?: ExtendedOptions ): typedndarray<T>; // tslint:disable-line:no-unnecessary-generics
declare function array<T = unknown>( buffer: ArrayLike<any>, options?: ExtendedOptions ): typedndarray<T>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type Iterator<T> = TypedIterator<T> | TypedIterableIterator<T>;
*
* // ...
*/
declare function nditer2arrayEach<T = unknown>( iterator: Iterator<ndarray> ): Iterator<Array<T>>; // tslint:disable-line:no-unnecessary-generics
declare function nditer2arrayEach<T = unknown>( iterator: Iterator<ndarray> ): Iterator<Array<T>>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ interface AnyByRightAsync {
*
* anyByRightAsync( files, predicate, done );
*/
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback ): void;

/**
* Returns a function for testing whether at least one element in a collection passes a test implemented by a predicate function, iterating from right to left.
Expand Down Expand Up @@ -336,7 +336,7 @@ interface AnyByRightAsync {
* // Try to read each element in `files`:
* anyByRightAsync( files, done );
*/
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ interface AnyByAsync {
*
* anyByAsync( files, predicate, done );
*/
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback ): void;

/**
* Returns a function for testing whether at least one element in a collection passes a test implemented by a predicate function.
Expand Down Expand Up @@ -336,7 +336,7 @@ interface AnyByAsync {
* // Try to read each element in `files`:
* anyByAsync( files, done );
*/
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ interface BifurcateByAsync {
*
* bifurcateByAsync( files, predicate, done );
*/
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback<T> ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback<T> ): void;

/**
* Returns a function which splits values into two groups according to a predicate function.
Expand Down Expand Up @@ -357,7 +357,7 @@ interface BifurcateByAsync {
* // Try to read each element in `files`:
* bifurcateByAsync( files, done );
*/
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ interface CountByAsync {
*
* countByAsync( files, indicator, done );
*/
<T = unknown, V = unknown>( collection: Collection<T>, indicator: Indicator<T, V>, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, V = unknown>( collection: Collection<T>, indicator: Indicator<T, V>, done: Callback ): void;

/**
* Returns a function for grouping values according to an indicator function and returns group counts.
Expand Down Expand Up @@ -361,7 +361,7 @@ interface CountByAsync {
* // Try to read each element in `files`:
* countByAsync( files, done );
*/
factory<T = unknown, V = unknown>( indicator: Indicator<T, V> ): FactoryFunction<T>; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, V = unknown>( indicator: Indicator<T, V> ): FactoryFunction<T>;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ interface EveryByRightAsync {
*
* everyByRightAsync( files, predicate, done );
*/
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback ): void;

/**
* Returns a function for testing whether all elements in a collection pass a test implemented by a predicate function, iterating from right to left.
Expand Down Expand Up @@ -343,7 +343,7 @@ interface EveryByRightAsync {
* // Try to read each element in `files`:
* everyByRightAsync( files, done );
*/
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ interface EveryByAsync {
*
* everyByAsync( files, predicate, done );
*/
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback ): void;

/**
* Returns a function for testing whether all elements in a collection pass a test implemented by a predicate function.
Expand Down Expand Up @@ -343,7 +343,7 @@ interface EveryByAsync {
* // Try to read each element in `files`:
* everyByAsync( files, done );
*/
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ interface ForEachRightAsync {
*
* forEachRightAsync( files, read, done );
*/
<T = unknown, V = unknown>( collection: Collection<T>, fcn: Fcn<T, V>, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, V = unknown>( collection: Collection<T>, fcn: Fcn<T, V>, done: Callback ): void;

/**
* Returns a function to invoke a function once for each element in a collection.
Expand Down Expand Up @@ -328,7 +328,7 @@ interface ForEachRightAsync {
* // Run `read` for each element in `files`:
* forEachRightAsync( files, done );
*/
factory<T = unknown, V = unknown>( fcn: Fcn<T, V> ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, V = unknown>( fcn: Fcn<T, V> ): FactoryFunction;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ interface ForEachAsync {
*
* forEachAsync( files, read, done );
*/
<T = unknown, V = unknown>( collection: Collection<T>, fcn: Fcn<T, V>, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, V = unknown>( collection: Collection<T>, fcn: Fcn<T, V>, done: Callback ): void;

/**
* Returns a function to invoke a function once for each element in a collection.
Expand Down Expand Up @@ -328,7 +328,7 @@ interface ForEachAsync {
* // Run `read` for each element in `files`:
* forEachAsync( files, done );
*/
factory<T = unknown, V = unknown>( fcn: Fcn<T, V> ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, V = unknown>( fcn: Fcn<T, V> ): FactoryFunction;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ interface GroupByAsync {
*
* groupByAsync( files, indicator, done );
*/
<T = unknown, V = unknown>( collection: Collection<T>, indicator: Indicator<T, V>, done: ValuesCallback<T> ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, V = unknown>( collection: Collection<T>, indicator: Indicator<T, V>, done: ValuesCallback<T> ): void;

/**
* Returns a function for grouping values according to an indicator function.
Expand Down Expand Up @@ -673,7 +673,7 @@ interface GroupByAsync {
* // Try to read each element in `files`:
* groupByAsync( files, done );
*/
factory<T = unknown, V = unknown>( indicator: Indicator<T, V> ): ValuesFactoryFunction<T>; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, V = unknown>( indicator: Indicator<T, V> ): ValuesFactoryFunction<T>;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ interface InMapRightAsync {
*
* inmapRightAsync( files, read, done );
*/
<T = unknown, U = unknown, V = unknown>( collection: Collection<T>, fcn: Fcn<T, U, V>, done: Callback<U> ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, U = unknown, V = unknown>( collection: Collection<T>, fcn: Fcn<T, U, V>, done: Callback<U> ): void;

/**
* Returns a function to invoke a function once for each element in a collection and to update the collection in-place.
Expand Down Expand Up @@ -345,7 +345,7 @@ interface InMapRightAsync {
* // Run `read` for each element in `files`:
* inmapRightAsync( files, done );
*/
factory<T = unknown, U = unknown, V = unknown>( fcn: Fcn<T, U, V> ): FactoryFunction<T, U>; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, U = unknown, V = unknown>( fcn: Fcn<T, U, V> ): FactoryFunction<T, U>;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ interface InMapAsync {
*
* inmapAsync( files, read, done );
*/
<T = unknown, U = unknown, V = unknown>( collection: Collection<T>, fcn: Fcn<T, U, V>, done: Callback<U> ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, U = unknown, V = unknown>( collection: Collection<T>, fcn: Fcn<T, U, V>, done: Callback<U> ): void;

/**
* Returns a function to invoke a function once for each element in a collection and to update the collection in-place.
Expand Down Expand Up @@ -345,7 +345,7 @@ interface InMapAsync {
* // Run `read` for each element in `files`:
* inmapAsync( files, done );
*/
factory<T = unknown, U = unknown, V = unknown>( fcn: Fcn<T, U, V> ): FactoryFunction<T, U>; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, U = unknown, V = unknown>( fcn: Fcn<T, U, V> ): FactoryFunction<T, U>;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ interface NoneByRightAsync {
*
* noneByRightAsync( files, predicate, done );
*/
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback ): void;

/**
* Returns a function for testing whether all elements in a collection fail a test implemented by a predicate function, iterating from right to left.
Expand Down Expand Up @@ -339,7 +339,7 @@ interface NoneByRightAsync {
* // Try to read each element in `files`:
* noneByRightAsync( files, done );
*/
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ interface NoneByAsync {
*
* noneByAsync( files, predicate, done );
*/
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, V = unknown>( collection: Collection<T>, predicate: Predicate<T, V>, done: Callback ): void;

/**
* Returns a function for testing whether all elements in a collection fail a test implemented by a predicate function.
Expand Down Expand Up @@ -339,7 +339,7 @@ interface NoneByAsync {
* // Try to read each element in `files`:
* noneByAsync( files, done );
*/
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ interface ReduceRightAsync {
* };
* reduceRightAsync( files, acc, read, done );
*/
<T = unknown, U = unknown, V = unknown>( collection: Collection<T>, initial: U, reducer: Reducer<T, U, V>, done: Callback<U> ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, U = unknown, V = unknown>( collection: Collection<T>, initial: U, reducer: Reducer<T, U, V>, done: Callback<U> ): void;

/**
* Returns a function to apply a function against an accumulator and each element in a collection and return the accumulated result, iterating from right to left.
Expand Down Expand Up @@ -347,7 +347,7 @@ interface ReduceRightAsync {
* };
* reduceRightAsync( files, acc, done );
*/
factory<T = unknown, U = unknown, V = unknown>( reducer: Reducer<T, U, V> ): FactoryFunction<T, U>; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, U = unknown, V = unknown>( reducer: Reducer<T, U, V> ): FactoryFunction<T, U>;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ interface ReduceAsync {
* };
* reduceAsync( files, acc, read, done );
*/
<T = unknown, U = unknown, V = unknown>( collection: Collection<T>, initial: U, reducer: Reducer<T, U, V>, done: Callback<U> ): void; // tslint:disable-line:no-unnecessary-generics
<T = unknown, U = unknown, V = unknown>( collection: Collection<T>, initial: U, reducer: Reducer<T, U, V>, done: Callback<U> ): void;

/**
* Returns a function to apply a function against an accumulator and each element in a collection and return the accumulated result.
Expand Down Expand Up @@ -343,7 +343,7 @@ interface ReduceAsync {
* };
* reduceAsync( files, acc, done );
*/
factory<T = unknown, U = unknown, V = unknown>( reducer: Reducer<T, U, V> ): FactoryFunction<T, U>; // tslint:disable-line:no-unnecessary-generics
factory<T = unknown, U = unknown, V = unknown>( reducer: Reducer<T, U, V> ): FactoryFunction<T, U>;
}

/**
Expand Down
Loading

0 comments on commit de93ae0

Please sign in to comment.