@aeriajs/types 0.0.66 → 0.0.67

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.
@@ -36,7 +36,7 @@ export type What<TDocument> = ({
36
36
  } & Omit<PackReferences<TDocument>, '_id'>) extends infer Document ? {
37
37
  [P in keyof Document]: Document[P] | null;
38
38
  } : never;
39
- export type Projection<TDocument> = keyof TDocument | '_id' extends infer DocumentProp ? DocumentProp extends string ? DocumentProp[] : string[] : never;
39
+ export type Projection<TDocument> = keyof TDocument | '_id' extends infer DocumentProp ? [DocumentProp] extends [string] ? DocumentProp[] : string[] : never;
40
40
  export type QuerySort<TDocument> = Partial<Record<keyof WithId<TDocument>, 1 | -1>>;
41
41
  export type CollectionDocument<TDocument> = TDocument;
42
42
  export type CountPayload<TDocument extends CollectionDocument<OptionalId<any>>> = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/types",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",