Skip to content

Commit

Permalink
fix: resolve type declaration typo by removing stray lint directive
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Nov 20, 2023
1 parent c30e004 commit def989d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ declare function empty( dtype: 'generic', shape: Shape, order: Order ): typednda
* var dt = arr.dtype;
* // returns 'float32'
*/
declare function empty( dtype: DataType, shape: Shape, order: Order ): typedndarray<number>; unified-signatures
declare function empty( dtype: DataType, shape: Shape, order: Order ): typedndarray<number>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ declare function zeros( dtype: 'generic', shape: Shape, order: Order ): typednda
* var dt = arr.dtype;
* // returns 'float32'
*/
declare function zeros( dtype: DataType, shape: Shape, order: Order ): typedndarray<number>; unified-signatures
declare function zeros( dtype: DataType, shape: Shape, order: Order ): typedndarray<number>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ declare function empty( shape: Shape | number, options?: Options ): float64ndarr
* var dt = arr.dtype;
* // returns 'float64'
*/
declare function empty( shape: Shape | number, options?: OptionsWithDType ): typedndarray<number>; unified-signatures
declare function empty( shape: Shape | number, options?: OptionsWithDType ): typedndarray<number>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ interface Dispatcher {
* strided( x.length, 'float64', x, 1, 0 );
* // x => <Float64Array>[ 3.14, 3.14, 3.14, 3.14, 3.14 ]
*/
( N: number, dtypeX: any, x: ArrayLike<any>, strideX: number, offsetX: number ): ArrayLike<any> | void; unified-signatures
( N: number, dtypeX: any, x: ArrayLike<any>, strideX: number, offsetX: number ): ArrayLike<any> | void;

/**
* Invokes a strided array function based on the provided array data types.
Expand Down Expand Up @@ -534,7 +534,7 @@ interface Dispatcher {
* strided( x.length, 'float64', x, 1, 'float64', y, 1, 'float64', z, 1, 'float64', w, 1, 'float64', u, 1 );
* // u => <Float64Array>[ 4.0, 8.0, 12.0 ]
*/
( N: number, dtypeX: any, x: ArrayLike<any>, strideX: number, dtypeY: any, y: ArrayLike<any>, strideY: number, dtypeZ: any, z: ArrayLike<any>, strideZ: number, dtypeW: any, w: ArrayLike<any>, strideW: number, ...args: Array<ArrayLike<any> | number | string> ): ArrayLike<any> | void; unified-signatures
( N: number, dtypeX: any, x: ArrayLike<any>, strideX: number, dtypeY: any, y: ArrayLike<any>, strideY: number, dtypeZ: any, z: ArrayLike<any>, strideZ: number, dtypeW: any, w: ArrayLike<any>, strideW: number, ...args: Array<ArrayLike<any> | number | string> ): ArrayLike<any> | void;

/**
* Invokes a strided array function based on the provided array data types using alternative indexing semantics.
Expand Down Expand Up @@ -591,7 +591,7 @@ interface Dispatcher {
* strided( x.length, 'float64', x, 1, 0, 'float64', y, 1, 0, 'float64', z, 1, 0, 'float64', w, 1, 0, 'float64', u, 1, 0 );
* // u => <Float64Array>[ 4.0, 8.0, 12.0 ]
*/
( N: number, dtypeX: any, x: ArrayLike<any>, strideX: number, offsetX: number, dtypeY: any, y: ArrayLike<any>, strideY: number, offsetY: number, dtypeZ: any, z: ArrayLike<any>, strideZ: number, offsetZ: number, dtypeW: any, w: ArrayLike<any>, strideW: number, offsetW: number, ...args: Array<ArrayLike<any> | number> ): ArrayLike<any> | void; unified-signatures
( N: number, dtypeX: any, x: ArrayLike<any>, strideX: number, offsetX: number, dtypeY: any, y: ArrayLike<any>, strideY: number, offsetY: number, dtypeZ: any, z: ArrayLike<any>, strideZ: number, offsetZ: number, dtypeW: any, w: ArrayLike<any>, strideW: number, offsetW: number, ...args: Array<ArrayLike<any> | number> ): ArrayLike<any> | void;
}

/**
Expand Down Expand Up @@ -684,7 +684,7 @@ declare function dispatch( fcns: StridedArrayFcn | ArrayLike<StridedArrayFcn>, t
* strided( x.length, 'float64', x, 1, 0, 'float64', y, 1, 0 );
* // y => <Float64Array>[ 1.0, 2.0, 3.0, 4.0, 5.0 ]
*/
declare function dispatch( fcns: StridedArrayFcnWithOffsets | ArrayLike<StridedArrayFcnWithOffsets>, types: ArrayLike<any>, data: ArrayLike<any> | null, nargs: number, nin: number, nout: number ): Dispatcher; unified-signatures
declare function dispatch( fcns: StridedArrayFcnWithOffsets | ArrayLike<StridedArrayFcnWithOffsets>, types: ArrayLike<any>, data: ArrayLike<any> | null, nargs: number, nin: number, nout: number ): Dispatcher;


// EXPORTS //
Expand Down

1 comment on commit def989d

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
ndarray/base/empty $\color{green}124/124$
$\color{green}+100.00\%$
$\color{green}8/8$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}124/124$
$\color{green}+100.00\%$
ndarray/base/zeros $\color{green}124/124$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}124/124$
$\color{green}+100.00\%$
ndarray/empty $\color{green}186/186$
$\color{green}+100.00\%$
$\color{green}31/31$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}186/186$
$\color{green}+100.00\%$
strided/dispatch $\color{green}461/461$
$\color{green}+100.00\%$
$\color{green}109/109$
$\color{green}+100.00\%$
$\color{green}3/3$
$\color{green}+100.00\%$
$\color{green}461/461$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.