Skip to content

Commit

Permalink
fix(types): wrong matrix definition (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulightouch committed Feb 2, 2023
1 parent e3ba8d4 commit e265e2a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Project: https://github.com/image-js/image-js
// Definitions by: Michaël Zasso <https://github.com/targos>

import Matrix from 'ml-matrix';

// Global variable exposed by UMD bundle
export as namespace IJS;

Expand Down Expand Up @@ -328,15 +330,6 @@ export declare class Stack extends Array<Image> {

export declare class RoiManager {}

export declare class Matrix extends Array<Array<number>> {
constructor();
constructor(width: number, height: number, defaultValue?: number);

localMin(x: number, y: number): { position: Array<number>; value: number };
localMax(x: number, y: number): { position: Array<number>; value: number };
localSearch(x: number, y: number, value: number): Array<Array<number>>;
}

export interface ImageConstructorOptions {
width?: number;
height?: number;
Expand Down

0 comments on commit e265e2a

Please sign in to comment.