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 3, 2023
1 parent fb8db9f commit 453dd85
Show file tree
Hide file tree
Showing 161 changed files with 240 additions and 240 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ interface AccessorArray {
* var bool = isAccessorArray( [] );
* // returns false
*/
declare function isAccessorArray( value: Collection | AccessorArray ): value is AccessorArray; // tslint-disable-line max-line-length
declare function isAccessorArray( value: Collection | AccessorArray ): value is AccessorArray;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* var arr = incrspace( 0, 11, 2 );
* // returns [ 0, 2, 4, 6, 8, 10 ]
*/
declare function incrspace( x1: number, x2: number, increment: number ): Array<number>; // tslint-disable-line max-line-length
declare function incrspace( x1: number, x2: number, increment: number ): Array<number>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ interface Complex128ArrayConstructor {
* var len = arr.length;
* // returns 2
*/
new( arg?: number | RealOrComplexTypedArray | ArrayLike<number | ComplexLike> | ArrayBuffer | Iterable<number | ComplexLike>, byteOffset?: number, length?: number ): Complex128Array; // tslint-disable-line max-line-length
new( arg?: number | RealOrComplexTypedArray | ArrayLike<number | ComplexLike> | ArrayBuffer | Iterable<number | ComplexLike>, byteOffset?: number, length?: number ): Complex128Array;

/**
* 128-bit complex number array constructor.
Expand Down Expand Up @@ -433,7 +433,7 @@ interface Complex128ArrayConstructor {
* var len = arr.length;
* // returns 2
*/
( arg?: number | RealOrComplexTypedArray | ArrayLike<number | ComplexLike> | ArrayBuffer | Iterable<number | ComplexLike>, byteOffset?: number, length?: number ): Complex128Array; // tslint-disable-line max-line-length
( arg?: number | RealOrComplexTypedArray | ArrayLike<number | ComplexLike> | ArrayBuffer | Iterable<number | ComplexLike>, byteOffset?: number, length?: number ): Complex128Array;

/**
* Constructor name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ interface Complex64ArrayConstructor {
* var len = arr.length;
* // returns 2
*/
new( arg?: number | RealOrComplexTypedArray | ArrayLike<number | ComplexLike> | ArrayBuffer | Iterable<number | ComplexLike>, byteOffset?: number, length?: number ): Complex64Array; // tslint-disable-line max-line-length
new( arg?: number | RealOrComplexTypedArray | ArrayLike<number | ComplexLike> | ArrayBuffer | Iterable<number | ComplexLike>, byteOffset?: number, length?: number ): Complex64Array;

/**
* 64-bit complex number array constructor.
Expand Down Expand Up @@ -433,7 +433,7 @@ interface Complex64ArrayConstructor {
* var len = arr.length;
* // returns 2
*/
( arg?: number | RealOrComplexTypedArray | ArrayLike<number | ComplexLike> | ArrayBuffer | Iterable<number | ComplexLike>, byteOffset?: number, length?: number ): Complex64Array; // tslint-disable-line max-line-length
( arg?: number | RealOrComplexTypedArray | ArrayLike<number | ComplexLike> | ArrayBuffer | Iterable<number | ComplexLike>, byteOffset?: number, length?: number ): Complex64Array;

/**
* Constructor name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ interface Options {
* var arr = datespace( 1417503655000, 1417503655001, 3, { 'round': 'round' } );
* // returns [...]
*/
declare function datespace( start: Date | number | string, stop: Date | number | string, options?: Options ): Array<Date>; // tslint-disable-line max-line-length
declare function datespace( start: Date | number | string, stop: Date | number | string, options?: Options ): Array<Date>;

/**
* Generates an array of linearly spaced dates.
Expand Down Expand Up @@ -84,7 +84,7 @@ declare function datespace( start: Date | number | string, stop: Date | number |
* var arr = datespace( 1417503655000, 1417503655001, 3, { 'round': 'round' } );
* // returns [...]
*/
declare function datespace( start: Date | number | string, stop: Date | number | string, length: number, options?: Options ): Array<Date>; // tslint-disable-line max-line-length
declare function datespace( start: Date | number | string, stop: Date | number | string, length: number, options?: Options ): Array<Date>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* var arr = incrspace( 0, 11, 2 );
* // returns [ 0, 2, 4, 6, 8, 10 ]
*/
declare function incrspace( x1: number, x2: number, increment?: number ): Array<number>; // tslint-disable-line max-line-length
declare function incrspace( x1: number, x2: number, increment?: number ): Array<number>;


// EXPORTS //
Expand Down
46 changes: 23 additions & 23 deletions lib/node_modules/@stdlib/array/linspace/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ interface Linspace {
* var arr = linspace( 0.0, 100.0, 6, opts );
* // returns <Float64Array>[ 0.0, 20.0, 40.0, 60.0, 80.0, 100.0 ]
*/
( start: number, stop: number, len: number, options?: BaseOptions | Float64Options ): Float64Array; // tslint-disable-line max-line-length
( start: number, stop: number, len: number, options?: BaseOptions | Float64Options ): Float64Array;

/**
* Generates a linearly spaced array over a specified interval.
Expand All @@ -148,7 +148,7 @@ interface Linspace {
* var arr = linspace( 0.0, 100.0, 6 );
* // returns <Float32Array>[ 0.0, 20.0, 40.0, 60.0, 80.0, 100.0 ]
*/
( start: number, stop: number, len: number, options: Float32Options ): Float32Array; // tslint-disable-line max-line-length
( start: number, stop: number, len: number, options: Float32Options ): Float32Array;

/**
* Generates a linearly spaced array over a specified interval.
Expand All @@ -168,7 +168,7 @@ interface Linspace {
* var arr = linspace( 0.0, 100.0, 6 );
* // returns [ 0.0, 20.0, 40.0, 60.0, 80.0, 100.0 ]
*/
( start: number, stop: number, len: number, options: GenericOptions ): Array<number>; // tslint-disable-line max-line-length
( start: number, stop: number, len: number, options: GenericOptions ): Array<number>;

/**
* Generates a linearly spaced array over a specified interval.
Expand Down Expand Up @@ -202,7 +202,7 @@ interface Linspace {
* var arr = linspace( start, stop, 6, opts );
* // returns <Complex64Array>
*/
( start: Complex64, stop: Complex64, len: number, options?: Complex64Options ): Complex64Array; // tslint-disable-line max-line-length
( start: Complex64, stop: Complex64, len: number, options?: Complex64Options ): Complex64Array;

/**
* Generates a linearly spaced array over a specified interval.
Expand All @@ -227,7 +227,7 @@ interface Linspace {
* var arr = linspace( start, stop, 6, opts );
* // returns <Complex64Array>
*/
( start: number | ComplexLike, stop: number | ComplexLike, len: number, options: Complex64Options ): Complex64Array; // tslint-disable-line max-line-length
( start: number | ComplexLike, stop: number | ComplexLike, len: number, options: Complex64Options ): Complex64Array;

/**
* Generates a linearly spaced array over a specified interval.
Expand All @@ -252,7 +252,7 @@ interface Linspace {
* var arr = linspace( start, stop, 6, opts );
* // returns [...]
*/
( start: Complex64, stop: Complex64, len: number, options: GenericOptions ): Array<Complex64>; // tslint-disable-line max-line-length
( start: Complex64, stop: Complex64, len: number, options: GenericOptions ): Array<Complex64>;

/**
* Generates a linearly spaced array over a specified interval.
Expand All @@ -277,7 +277,7 @@ interface Linspace {
* var arr = linspace( start, stop, 6, opts );
* // returns [...]
*/
( start: ComplexLike, stop: number | ComplexLike, len: number, options: GenericOptions ): Array<Complex128>; // tslint-disable-line max-line-length
( start: ComplexLike, stop: number | ComplexLike, len: number, options: GenericOptions ): Array<Complex128>;

/**
* Generates a linearly spaced array over a specified interval.
Expand All @@ -302,7 +302,7 @@ interface Linspace {
* var arr = linspace( start, stop, 6, opts );
* // returns [...]
*/
( start: number | ComplexLike, stop: ComplexLike, len: number, options: GenericOptions ): Array<Complex128>; // tslint-disable-line max-line-length
( start: number | ComplexLike, stop: ComplexLike, len: number, options: GenericOptions ): Array<Complex128>;

/**
* Generates a linearly spaced array over a specified interval.
Expand Down Expand Up @@ -336,7 +336,7 @@ interface Linspace {
* var arr = linspace( start, stop, 6, opts );
* // returns <Complex128Array>
*/
( start: ComplexLike, stop: number | ComplexLike, len: number, options?: Complex128Options ): Complex128Array; // tslint-disable-line max-line-length
( start: ComplexLike, stop: number | ComplexLike, len: number, options?: Complex128Options ): Complex128Array;

/**
* Generates a linearly spaced array over a specified interval.
Expand Down Expand Up @@ -370,7 +370,7 @@ interface Linspace {
* var arr = linspace( start, stop, 6, opts );
* // returns <Complex128Array>
*/
( start: number | ComplexLike, stop: ComplexLike, len: number, options?: Complex128Options ): Complex128Array; // tslint-disable-line max-line-length
( start: number | ComplexLike, stop: ComplexLike, len: number, options?: Complex128Options ): Complex128Array;

/**
* Generates a linearly spaced array over a specified interval.
Expand All @@ -393,7 +393,7 @@ interface Linspace {
* var arr = linspace( start, stop, 6, opts );
* // returns <Complex128Array>
*/
( start: number, stop: number, len: number, options: Complex128Options ): Complex128Array; // tslint-disable-line max-line-length
( start: number, stop: number, len: number, options: Complex128Options ): Complex128Array;

/**
* Generates a linearly spaced array over a specified interval.
Expand All @@ -410,7 +410,7 @@ interface Linspace {
* var arr = linspace( 0.0, 100.0, 6 );
* // returns <Float64Array>[ 0.0, 20.0, 40.0, 60.0, 80.0, 100.0 ]
*/
( start: number | ComplexLike, stop: number | ComplexLike, len: number, options?: Options ): FloatOrComplexTypedArray; // tslint-disable-line max-line-length
( start: number | ComplexLike, stop: number | ComplexLike, len: number, options?: Options ): FloatOrComplexTypedArray;

/**
* Generates a linearly spaced sequence over a specified interval and assigns results to a provided output array.
Expand All @@ -429,7 +429,7 @@ interface Linspace {
* var arr = linspace.assign( 0.0, 100.0, out );
* // returns <Float64Array>[ 0.0, 20.0, 40.0, 60.0, 80.0, 100.0 ]
*/
assign( start: number, stop: number, out: Float64Array, options?: BaseOptions ): Float64Array; // tslint-disable-line max-line-length
assign( start: number, stop: number, out: Float64Array, options?: BaseOptions ): Float64Array;

/**
* Generates a linearly spaced sequence over a specified interval and assigns results to a provided output array.
Expand All @@ -448,7 +448,7 @@ interface Linspace {
* var arr = linspace.assign( 0.0, 100.0, out );
* // returns <Float32Array>[ 0.0, 20.0, 40.0, 60.0, 80.0, 100.0 ]
*/
assign( start: number, stop: number, out: Float32Array, options?: BaseOptions ): Float32Array; // tslint-disable-line max-line-length
assign( start: number, stop: number, out: Float32Array, options?: BaseOptions ): Float32Array;

/**
* Generates a linearly spaced sequence over a specified interval and assigns results to a provided output array.
Expand All @@ -465,7 +465,7 @@ interface Linspace {
* var arr = linspace.assign( 0.0, 100.0, out );
* // returns [ 0.0, 20.0, 40.0, 60.0, 80.0, 100.0 ]
*/
assign( start: number, stop: number, out: Array<number>, options?: BaseOptions ): Array<number>; // tslint-disable-line max-line-length
assign( start: number, stop: number, out: Array<number>, options?: BaseOptions ): Array<number>;

/**
* Generates a linearly spaced sequence over a specified interval and assigns results to a provided output array.
Expand All @@ -487,7 +487,7 @@ interface Linspace {
* var arr = linspace.assign( start, stop, out );
* // returns [...]
*/
assign( start: Complex64, stop: Complex64, out: Array<any>, options?: BaseOptions ): Array<Complex64>; // tslint-disable-line max-line-length
assign( start: Complex64, stop: Complex64, out: Array<any>, options?: BaseOptions ): Array<Complex64>;

/**
* Generates a linearly spaced sequence over a specified interval and assigns results to a provided output array.
Expand All @@ -509,7 +509,7 @@ interface Linspace {
* var arr = linspace.assign( start, stop, out );
* // returns [...]
*/
assign( start: ComplexLike, stop: number | ComplexLike, out: Array<any>, options?: BaseOptions ): Array<Complex128>; // tslint-disable-line max-line-length
assign( start: ComplexLike, stop: number | ComplexLike, out: Array<any>, options?: BaseOptions ): Array<Complex128>;

/**
* Generates a linearly spaced sequence over a specified interval and assigns results to a provided output array.
Expand All @@ -531,7 +531,7 @@ interface Linspace {
* var arr = linspace.assign( start, stop, out );
* // returns [...]
*/
assign( start: number | ComplexLike, stop: ComplexLike, out: Array<any>, options?: BaseOptions ): Array<Complex128>; // tslint-disable-line max-line-length
assign( start: number | ComplexLike, stop: ComplexLike, out: Array<any>, options?: BaseOptions ): Array<Complex128>;

/**
* Generates a linearly spaced sequence over a specified interval and assigns results to a provided output array.
Expand All @@ -550,7 +550,7 @@ interface Linspace {
* var arr = linspace.assign( 0.0, 100.0, out );
* // returns <Complex128Array>
*/
assign( start: number | ComplexLike, stop: number | ComplexLike, out: Complex128Array, options?: BaseOptions ): Complex128Array; // tslint-disable-line max-line-length
assign( start: number | ComplexLike, stop: number | ComplexLike, out: Complex128Array, options?: BaseOptions ): Complex128Array;

/**
* Generates a linearly spaced sequence over a specified interval and assigns results to a provided output array.
Expand All @@ -569,7 +569,7 @@ interface Linspace {
* var arr = linspace.assign( 0.0, 100.0, out );
* // returns <Complex64Array>
*/
assign( start: number | ComplexLike, stop: number | ComplexLike, out: Complex64Array, options?: BaseOptions ): Complex64Array; // tslint-disable-line max-line-length
assign( start: number | ComplexLike, stop: number | ComplexLike, out: Complex64Array, options?: BaseOptions ): Complex64Array;

/**
* Generates a linearly spaced sequence over a specified interval and assigns results to a provided output array.
Expand All @@ -588,7 +588,7 @@ interface Linspace {
* var arr = linspace.assign( 0.0, 100.0, out );
* // returns <Float64Array>[ 0.0, 20.0, 40.0, 60.0, 80.0, 100.0 ]
*/
assign( start: number, stop: number, out: ArrayLike<any>, options?: BaseOptions ): ArrayLike<number>; // tslint-disable-line max-line-length
assign( start: number, stop: number, out: ArrayLike<any>, options?: BaseOptions ): ArrayLike<number>;

/**
* Generates a linearly spaced sequence over a specified interval and assigns results to a provided output array.
Expand All @@ -611,7 +611,7 @@ interface Linspace {
* var arr = linspace.assign( start, stop, out );
* // returns [...]
*/
assign( start: ComplexLike, stop: number | ComplexLike, out: ArrayLike<any>, options?: BaseOptions ): ArrayLike<ComplexLike>; // tslint-disable-line max-line-length
assign( start: ComplexLike, stop: number | ComplexLike, out: ArrayLike<any>, options?: BaseOptions ): ArrayLike<ComplexLike>;

/**
* Generates a linearly spaced sequence over a specified interval and assigns results to a provided output array.
Expand All @@ -634,7 +634,7 @@ interface Linspace {
* var arr = linspace.assign( start, stop, out );
* // returns [...]
*/
assign( start: number | ComplexLike, stop: ComplexLike, out: ArrayLike<any>, options?: BaseOptions ): ArrayLike<ComplexLike>; // tslint-disable-line max-line-length
assign( start: number | ComplexLike, stop: ComplexLike, out: ArrayLike<any>, options?: BaseOptions ): ArrayLike<ComplexLike>;
}

/**
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>; // tslint-disable-line max-line-length
declare function logspace( x1: number, x2: number, len?: number ): Array<number>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ type Ternary = ( value: any, index: number, n: number ) => any;
* @param src - source array-like object
* @returns iterator value
*/
type Quaternary = ( value: any, index: number, n: number, src: ArrayLike<any> ) => any; // tslint-disable-line max-line-length
type Quaternary = ( value: any, index: number, n: number, src: ArrayLike<any> ) => any;

/**
* Map function invoked for each iterated value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type Comparison = 'open' | 'closed';
* var bool = isBetweenArray( arr, 3.0, 4.0, 'closed', 'open' );
* // returns false
*/
declare function isBetweenArray( value: any, a: any, b: any, left?: Comparison, right?: Comparison ): value is ArrayLike<number>; // tslint-disable-line max-line-length
declare function isBetweenArray( value: any, a: any, b: any, left?: Comparison, right?: Comparison ): value is ArrayLike<number>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type Comparison = 'open' | 'closed';
* var bool = isBetween( 3.14, 3.0, 3.14, 'closed', 'open' );
* // returns false
*/
declare function isBetween( value: any, a: any, b: any, left?: Comparison, right?: Comparison ): value is number; // tslint-disable-line max-line-length
declare function isBetween( value: any, a: any, b: any, left?: Comparison, right?: Comparison ): value is number;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { Complex64Array, Complex128Array } from '@stdlib/types/array';
* var bool = isComplexTypedArray( new Complex128Array( 10 ) );
* // returns true
*/
declare function isComplexTypedArray( value: any ): value is Complex64Array | Complex128Array; // tslint-disable-line max-line-length
declare function isComplexTypedArray( value: any ): value is Complex64Array | Complex128Array;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ interface Routine {
* var bool = ( y === out );
* // returns true
*/
assign( a: number, b: number, out: Float64Array, stride: number, offset: number ): Float64Array; // tslint-disable-line max-line-length
assign( a: number, b: number, out: Float64Array, stride: number, offset: number ): Float64Array;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ interface Routine {
* var bool = ( y === out );
* // returns true
*/
assign( a: number, b: number, out: Float32Array, stride: number, offset: number ): Float32Array; // tslint-disable-line max-line-length
assign( a: number, b: number, out: Float32Array, stride: number, offset: number ): Float32Array;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import { Buffer } from 'buffer';
* var buf = fromArrayBuffer( ab, 2, 4 );
* // returns <Buffer>
*/
declare function fromArrayBuffer( buf: ArrayBuffer, byteOffset?: number, length?: number ): Buffer; // tslint-disable-line max-line-length
declare function fromArrayBuffer( buf: ArrayBuffer, byteOffset?: number, length?: number ): Buffer;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type DataType = 'float64' | 'float32';
* var z = complex( 5.0, 3.0, 'float64' );
* // returns <Complex128>
*/
declare function complex( real: number, imag: number, dtype?: DataType ): Complex; // tslint-disable-line max-line-length
declare function complex( real: number, imag: number, dtype?: DataType ): Complex;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

// TypeScript Version: 4.1

type PoliticalParty = 'Democratic' | 'Republican' | 'Democratic-Republican' | 'Federalist' | 'National Union' | 'Whig' | 'Whig & Democratic' | 'none'; // tslint-disable-line max-line-length
type PoliticalParty = 'Democratic' | 'Republican' | 'Democratic-Republican' | 'Federalist' | 'National Union' | 'Whig' | 'Whig & Democratic' | 'none';

type YearRange = [ number, number ];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* var json = error2json( err );
* // returns {...}
*/
declare function error2json( err: Error|TypeError|SyntaxError|URIError|ReferenceError|RangeError|EvalError ): any; // tslint-disable-line max-line-length
declare function error2json( err: Error|TypeError|SyntaxError|URIError|ReferenceError|RangeError|EvalError ): any;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ interface Options {
* var fcn = factory( opts );
* // returns <Function>
*/
declare function fmtprodmsgFactory( options?: Options ): FormatProdErrorMsgFunction; // tslint-disable-line max-line-length
declare function fmtprodmsgFactory( options?: Options ): FormatProdErrorMsgFunction;


// EXPORTS //
Expand Down
Loading

0 comments on commit 453dd85

Please sign in to comment.