-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
'expires_at' is missing in the parameter of'generateScopedSearchKey' #82
Comments
Oh yes, thank you for catching that. Will push out a fix shortly. |
@ueda19850603 Just pushed out v1.0.1 with a fix for this. |
No q and query_by are optional when generating scoped search keys. This is another bug with the type definitions. I'll push out a fix for this shortly. |
@ueda19850603 Could you try again in this version: |
I confirmed the operation with 1.0.2-0. |
Description
According to the official website, you can specify'expires_at' when creating a restricted key.
https://typesense.org/docs/0.21.0/api/api-keys.html#generate-scoped-search-key
However, VScode prints a warning because there is no'expires_at' in the TypeScript type definition.
Steps to reproduce
write code
Expected Behavior
No warning is displayed
Actual Behavior
Warning is displayed
Metadata
VSCode 1.16.0
TypeScript 4.2.4
Typsense Version:
Version 1.0.0
OS:
The text was updated successfully, but these errors were encountered: