Skip to content

Commit

Permalink
fix: correct definitions of options interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Jul 10, 2019
1 parent 94814cf commit b07d3a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hclust.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ export type AgglomerationMethod =
| 'ward';

export interface AgnesOptions<T> {
distanceFunction: (a: T, b: T) => number;
method: AgglomerationMethod;
isDistanceMatrix: boolean;
distanceFunction?: (a: T, b: T) => number;
method?: AgglomerationMethod;
isDistanceMatrix?: boolean;
}

export interface DianaOptions<T> {
distanceFunction: (a: T, b: T) => number;
distanceFunction?: (a: T, b: T) => number;
}

export interface Cluster {
Expand Down

0 comments on commit b07d3a4

Please sign in to comment.