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

Make NullValue and Setting public #2496

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions specification/_spec_utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import { Stringified } from '@spec_utils/Stringified'
* to a missing value. It is used for exemple in settings, where using the `NullValue` for a setting will reset
* it to its default value.
*/
type NullValue = null
export type NullValue = null

/**
* Settings in Elasticsearch are values that can be reset to their default by setting them to the `null` value.
*
* @es_quirk Because of how they are implemented internally, settings are always returned as strings, even
* if their value has been set using a primitive type.
*/
type Setting<T> = Stringified<T> | NullValue
export type Setting<T> = Stringified<T> | NullValue
Loading