Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade typescript-eslint to v8.14.0 #955

Merged
merged 2 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading