@sebspark/opensearch 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -256,7 +256,7 @@ type IndexOptions<T extends WithId> = {
|
|
|
256
256
|
aliases?: Record<string, Record<string, never>>;
|
|
257
257
|
};
|
|
258
258
|
type IndexProperties<T> = {
|
|
259
|
-
[K in keyof Partial<T>]: T[K] extends object ? T[K] extends Array<infer U> ? FieldOptions<T[K]> : IndexProperties<T[K]> : FieldOptions<T[K]>;
|
|
259
|
+
[K in keyof Partial<T>]: T[K] extends Date ? FieldOptions<T[K]> : T[K] extends object ? T[K] extends Array<infer U> ? FieldOptions<T[K]> : IndexProperties<T[K]> : FieldOptions<T[K]>;
|
|
260
260
|
};
|
|
261
261
|
|
|
262
262
|
interface OpenSearchHelper extends Client {
|
package/dist/index.d.ts
CHANGED
|
@@ -256,7 +256,7 @@ type IndexOptions<T extends WithId> = {
|
|
|
256
256
|
aliases?: Record<string, Record<string, never>>;
|
|
257
257
|
};
|
|
258
258
|
type IndexProperties<T> = {
|
|
259
|
-
[K in keyof Partial<T>]: T[K] extends object ? T[K] extends Array<infer U> ? FieldOptions<T[K]> : IndexProperties<T[K]> : FieldOptions<T[K]>;
|
|
259
|
+
[K in keyof Partial<T>]: T[K] extends Date ? FieldOptions<T[K]> : T[K] extends object ? T[K] extends Array<infer U> ? FieldOptions<T[K]> : IndexProperties<T[K]> : FieldOptions<T[K]>;
|
|
260
260
|
};
|
|
261
261
|
|
|
262
262
|
interface OpenSearchHelper extends Client {
|