Skip to content

Commit bd914b8

Browse files
Merge #1358
1358: Update MatchingStrategies enum type r=bidoubiwa a=jimmyruann # Pull Request ## Related issue Fixes #1350 ## What does this PR do? - Change the way MatchingStrategies enum is defined ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Jimmy Ruan <[email protected]> Co-authored-by: jimmyruann <[email protected]>
2 parents 90ab89f + 0edb2e3 commit bd914b8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/types/types.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ export type IndexesResults<T> = ResourceResults<T> & {}
5252
* SEARCH PARAMETERS
5353
*/
5454

55-
export const enum MatchingStrategies {
56-
ALL = 'all',
57-
LAST = 'last',
55+
export const MatchingStrategies = {
56+
ALL: 'all',
57+
LAST: 'last',
5858
}
5959

60+
export type MatchingStrategies = typeof MatchingStrategies[keyof typeof MatchingStrategies]
61+
6062
export type Filter = string | Array<string | string[]>
6163

6264
export type Query = {

0 commit comments

Comments
 (0)