Skip to content
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

fix(hit-res): use template literals to assert type of stringified nums #249

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

tharropoulos
Copy link
Contributor

Change Summary

Since text_match_info returns best_field_score and score as numbers in string format, Typescript's template literals allow to assert that the underlying type is a number. This change provides enhancements to the overall typesafety of the client.

PR Checklist

@jasonbosco jasonbosco merged commit 619473d into typesense:master Nov 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants