Skip to content

Commit f5425ea

Browse files
onhatekrisk
authored andcommitted
fix: type mismatch on toJSON
1 parent 2c78022 commit f5425ea

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

dist/fuse.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ declare namespace Fuse {
110110
add(doc: T): void
111111
toJSON(): {
112112
keys: ReadonlyArray<string>
113-
collection: FuseIndexRecords
113+
records: FuseIndexRecords
114114
}
115115
}
116116

@@ -290,6 +290,6 @@ declare namespace Fuse {
290290
}
291291
| { $and?: Expression[] }
292292
| { $or?: Expression[] }
293-
293+
294294
export const config: Required<IFuseOptions<any>>;
295295
}

src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ declare namespace Fuse {
107107
add(doc: T): void
108108
toJSON(): {
109109
keys: ReadonlyArray<string>
110-
collection: FuseIndexRecords
110+
records: FuseIndexRecords
111111
}
112112
}
113113

@@ -304,6 +304,6 @@ declare namespace Fuse {
304304
}
305305
| { $and?: Expression[] }
306306
| { $or?: Expression[] }
307-
307+
308308
export const config: Required<IFuseOptions<any>>;
309309
}

0 commit comments

Comments
 (0)