@aeriajs/types 0.0.139 → 0.0.141

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.
@@ -27,7 +27,7 @@ type RemoveAny<T> = {
27
27
  };
28
28
  export type StrictFilter<TDocument> = RemoveAny<Filter<DocumentFilter<TDocument>>>;
29
29
  export type StrictFilterOperators<TDocument> = RemoveAny<FilterOperators<DocumentFilter<TDocument>>>;
30
- type FlattenObjectKeys<T> = T extends T & 0 ? never : T extends Record<infer K, unknown> ? K extends string ? T[K] extends Record<string, unknown> ? `${K}.${FlattenObjectKeys<T[K]>}` : K : never : never;
30
+ type FlattenObjectKeys<T> = T extends T & 0 ? never : T extends Record<infer K, unknown> ? K extends string ? T[K] extends (infer Elem)[] ? `${K}.${FlattenObjectKeys<Elem>}` : T[K] extends Record<string, unknown> ? `${K}.${FlattenObjectKeys<T[K]>}` : K : never : never;
31
31
  export type Filters<TDocument> = StrictFilter<TDocument> & Partial<{
32
32
  [P in keyof TDocument | FlattenObjectKeys<TDocument>]: (P extends keyof TDocument ? TDocument[P] extends infer Field ? Field extends ObjectId ? Field | string : Field extends {
33
33
  _id: infer Id;
@@ -25,10 +25,9 @@ export type RefProperty = {
25
25
  $ref: Exclude<keyof Collections, 'file'> & string;
26
26
  indexes?: readonly string[];
27
27
  select?: readonly string[];
28
- populate?: readonly string[];
28
+ populate?: readonly string[] | boolean;
29
29
  form?: readonly string[];
30
30
  inline?: boolean;
31
- purge?: boolean;
32
31
  populateDepth?: number;
33
32
  constraints?: Condition;
34
33
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aeriajs/types",
3
3
  "type": "module",
4
- "version": "0.0.139",
4
+ "version": "0.0.141",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",