Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit dbf2367

Browse files
authored
Update BFMatcher.d.ts
Resolve error message: 'A tuple type element list cannot be empty.'
1 parent 89fa56e commit dbf2367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/typings/BFMatcher.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export class BFMatcher {
66
constructor(params: { normType: number, crossCheck?: boolean });
77
match(descriptors1: Mat, descriptors2: Mat): DescriptorMatch[];
88
matchAsync(descriptors1: Mat, descriptors2: Mat): Promise<DescriptorMatch[]>;
9-
knnMatch(descriptors1: Mat, descriptors2: Mat, k: number): Array<[DescriptorMatch]|[]>;
10-
knnMatchAsync(descriptors1: Mat, descriptors2: Mat, k: number): Promise<Array<[DescriptorMatch]|[]>>;
9+
knnMatch(descriptors1: Mat, descriptors2: Mat, k: number): Array<[DescriptorMatch]|[any]>;
10+
knnMatchAsync(descriptors1: Mat, descriptors2: Mat, k: number): Promise<Array<[DescriptorMatch]|[any]>>;
1111
}

0 commit comments

Comments
 (0)