Skip to content

Commit

Permalink
chore: Upgrade typescript-eslint to v8.14.0 (#955)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Valentin Agachi <[email protected]>
  • Loading branch information
renovate[bot] and avaly authored Nov 15, 2024
1 parent 93960aa commit 5dcf05c
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 66 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"ts-expect": "1.3.0",
"ts-node": "10.9.2",
"typescript": "5.6.2",
"typescript-eslint": "8.11.0"
"typescript-eslint": "8.14.0"
},
"peerDependencies": {
"mongodb": "^6.0.0"
Expand Down
120 changes: 60 additions & 60 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 5dcf05c

Please sign in to comment.