Skip to content

Commit

Permalink
chore: fix type define
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed May 13, 2024
1 parent cfd93f2 commit 4d2bd72
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/type.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ declare class BruteforceSearch {
loadIndex(): void;
}

declare const hnswlib = {
HierarchicalNSW,
InnerProductSpace,
L2Space,
BruteforceSearch,
};
declare interface HnswlibImpl {
HierarchicalNSW: typeof HierarchicalNSW;
InnerProductSpace: typeof InnerProductSpace;
L2Space: typeof L2Space;
BruteforceSearch: typeof BruteforceSearch;
}

declare const hnswlib: HnswlibImpl;

0 comments on commit 4d2bd72

Please sign in to comment.