Skip to content

Commit

Permalink
fixup! chore: Upgrade typescript-eslint to v8.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
avaly committed Nov 15, 2024
1 parent 17b755a commit 5cf9cf8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/mongodbTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export type PaprArrayElementsProperties<TSchema> = {
* 'objectList.$[element].foo': any;
* }
*/
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
export type PaprArrayNestedProperties<TSchema> = {
[Property in `${KeysOfAType<PaprAllProperties<TSchema>, Record<string, any>[]>}.$${
| ''
Expand Down
9 changes: 4 additions & 5 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ type TimestampSchemaProperty<
? never
: TProperty;

export type TimestampSchema<TOptions extends SchemaTimestampOptions | undefined> = {
[key in
| TimestampSchemaProperty<'createdAt', TOptions>
| TimestampSchemaProperty<'updatedAt', TOptions>]: Date;
};
export type TimestampSchema<TOptions extends SchemaTimestampOptions | undefined> = Record<
TimestampSchemaProperty<'createdAt', TOptions> | TimestampSchemaProperty<'updatedAt', TOptions>,
Date
>;

export interface ModelOptions {
hooks?: Hooks;
Expand Down

0 comments on commit 5cf9cf8

Please sign in to comment.