Comparing version 7.2.0 to 7.2.1
@@ -26,3 +26,3 @@ import { ObjectId } from 'mongodb'; | ||
export declare type DocumentForInsertWithoutDefaults<TSchema, TDefaults extends Partial<TSchema>> = Omit<OptionalId<TSchema>, keyof TDefaults> & Partial<Pick<TSchema, keyof TDefaults & keyof TSchema>>; | ||
export declare type DocumentForInsert<TSchema, TDefaults extends Partial<TSchema>> = Extract<keyof TSchema, 'createdAt'> extends 'createdAt' ? Omit<DocumentForInsertWithoutDefaults<TSchema, TDefaults>, 'createdAt' | 'updatedAt'> & Partial<TimestampSchema> : DocumentForInsertWithoutDefaults<TSchema, TDefaults>; | ||
export declare type DocumentForInsert<TSchema, TDefaults extends Partial<TSchema>> = TSchema extends TimestampSchema ? Omit<DocumentForInsertWithoutDefaults<TSchema, TDefaults>, 'createdAt' | 'updatedAt'> & Partial<TimestampSchema> : DocumentForInsertWithoutDefaults<TSchema, TDefaults>; | ||
export declare type BulkWriteOperation<TSchema, TDefaults extends Partial<TSchema>> = { | ||
@@ -29,0 +29,0 @@ insertOne: { |
@@ -26,3 +26,3 @@ import { ObjectId } from 'mongodb'; | ||
export declare type DocumentForInsertWithoutDefaults<TSchema, TDefaults extends Partial<TSchema>> = Omit<OptionalId<TSchema>, keyof TDefaults> & Partial<Pick<TSchema, keyof TDefaults & keyof TSchema>>; | ||
export declare type DocumentForInsert<TSchema, TDefaults extends Partial<TSchema>> = Extract<keyof TSchema, 'createdAt'> extends 'createdAt' ? Omit<DocumentForInsertWithoutDefaults<TSchema, TDefaults>, 'createdAt' | 'updatedAt'> & Partial<TimestampSchema> : DocumentForInsertWithoutDefaults<TSchema, TDefaults>; | ||
export declare type DocumentForInsert<TSchema, TDefaults extends Partial<TSchema>> = TSchema extends TimestampSchema ? Omit<DocumentForInsertWithoutDefaults<TSchema, TDefaults>, 'createdAt' | 'updatedAt'> & Partial<TimestampSchema> : DocumentForInsertWithoutDefaults<TSchema, TDefaults>; | ||
export declare type BulkWriteOperation<TSchema, TDefaults extends Partial<TSchema>> = { | ||
@@ -29,0 +29,0 @@ insertOne: { |
@@ -5,3 +5,3 @@ { | ||
"author": "Plex Inc.", | ||
"version": "7.2.0", | ||
"version": "7.2.1", | ||
"keywords": [ | ||
@@ -64,3 +64,3 @@ "mongodb", | ||
"@types/jest": "28.1.6", | ||
"@types/node": "14.18.22", | ||
"@types/node": "14.18.23", | ||
"@typescript-eslint/eslint-plugin": "5.31.0", | ||
@@ -67,0 +67,0 @@ "@typescript-eslint/parser": "5.31.0", |
188207