Skip to content

[FIX]: Update Highlight type definition to support array fields and optional attributes#134

Open
Nikhiladiga wants to merge 1 commit intotypesense:masterfrom
Nikhiladiga:fix/type-mismatch-highlight
Open

[FIX]: Update Highlight type definition to support array fields and optional attributes#134
Nikhiladiga wants to merge 1 commit intotypesense:masterfrom
Nikhiladiga:fix/type-mismatch-highlight

Conversation

@Nikhiladiga
Copy link
Copy Markdown

Change Summary

Previously, the static type definitions strictly assumed highlight fields would only return singular string properties. This caused false-positive static analysis errors (in mypy, pyright, etc.) when developers attempted to access array-based highlight data.

PR Checklist

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.

Type mismatch in Highlight and HighlightExtended: missing snippets and indices fields per API docs

1 participant