Skip to content

Conversation

lucaong
Copy link
Owner

@lucaong lucaong commented Sep 16, 2025

Resolves: #302

The return type of extractField should be any instead of string, because only indexed fields need to be strings, while fields that are saved but not indexed can be any object.

In order to maintain type safety for indexed fields, and to allow more customization options, this also adds a new stringifyField option to control how field values are turned into strings before indexing/de-indexing.

To address #302

Also, in order to maintain type safety for indexed fields, and to allow
more customization options, add a new `stringifyField` option to control
how field values are turned into strings for indexing.
@lucaong lucaong merged commit ca1b170 into master Sep 16, 2025
2 checks passed
@lucaong lucaong deleted the stringify-field-option branch September 16, 2025 12:30
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.

Allow return types other than string in extractField function
1 participant