-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
types: fix search default type of search
and searchGet
#1416
Conversation
and what's the point of Document? meilisearch-js/src/types/types.ts Lines 164 to 165 in 9ddf65d
|
search
and searchRaw
search
and searchGet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In typed_search.test.ts
Could you also add the following? That's what is failing the tests
export interface Movie {
id: number
title: string
genre?: string
comment?: string
isNull?: null
isTrue?: true
}
interface NestedDocument {
id: number
title: string
info: {
comment?: string
reviewNb?: number
}
}
const dataset: Movie[] = [
I know this is not the best design 😅 We'll work on that later
I fixed this error by add do you perfer |
it's still '1 change requested', any thing I need to do? |
You'r right, With the same logic as with What do you think? |
if |
Yep, should be removed |
so is there anything blocking this PR now? |
Oh I thought you were going to remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🔥
bors merge |
Removing it is not very related to this pr I this, should be separated to another pr… |
Pull Request
Related issue
No
What does this PR do?
This pr fix the default genetic type params of
search
andsearchGet
, it should use generic type param ofindex
expected type behavior in readme
current actually type, because
search
has a default generic type paramRecord<string, any>
:is implicit
and it's actually
PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!