File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
specification/_spec_utils Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,16 @@ import { Stringified } from '@spec_utils/Stringified'
26
26
*/
27
27
export type NullValue = null
28
28
29
+ /**
30
+ * `WithNullValue<T>` allows for explicit null assignments in contexts where `null` should be interpreted as an
31
+ * actual value.
32
+ */
33
+ export type WithNullValue < T > = T | NullValue
34
+
29
35
/**
30
36
* Settings in Elasticsearch are values that can be reset to their default by setting them to the `null` value.
31
37
*
32
38
* @es_quirk Because of how they are implemented internally, settings are always returned as strings, even
33
39
* if their value has been set using a primitive type.
34
40
*/
35
- export type Setting < T > = Stringified < T > | NullValue
41
+ export type Setting < T > = WithNullValue < Stringified < T > >
You can’t perform that action at this time.
0 commit comments