Skip to content

Commit

Permalink
Expose NullValue with export statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrazb authored Apr 9, 2024
1 parent fe1ef9e commit 37caf79
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 37caf79

Please sign in to comment.