@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 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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/opensearch",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",