Skip to content

Commit 5dcf05c

Browse files
renovate[bot]avaly
andauthored
chore: Upgrade typescript-eslint to v8.14.0 (#955)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Valentin Agachi <[email protected]>
1 parent 93960aa commit 5dcf05c

File tree

4 files changed

+66
-66
lines changed

4 files changed

+66
-66
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"ts-expect": "1.3.0",
8989
"ts-node": "10.9.2",
9090
"typescript": "5.6.2",
91-
"typescript-eslint": "8.11.0"
91+
"typescript-eslint": "8.14.0"
9292
},
9393
"peerDependencies": {
9494
"mongodb": "^6.0.0"

pnpm-lock.yaml

+60-60
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/mongodbTypes.ts

+1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export type PaprArrayElementsProperties<TSchema> = {
192192
* 'objectList.$[element].foo': any;
193193
* }
194194
*/
195+
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
195196
export type PaprArrayNestedProperties<TSchema> = {
196197
[Property in `${KeysOfAType<PaprAllProperties<TSchema>, Record<string, any>[]>}.$${
197198
| ''

src/utils.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ type TimestampSchemaProperty<
3636
? never
3737
: TProperty;
3838

39-
export type TimestampSchema<TOptions extends SchemaTimestampOptions | undefined> = {
40-
[key in
41-
| TimestampSchemaProperty<'createdAt', TOptions>
42-
| TimestampSchemaProperty<'updatedAt', TOptions>]: Date;
43-
};
39+
export type TimestampSchema<TOptions extends SchemaTimestampOptions | undefined> = Record<
40+
TimestampSchemaProperty<'createdAt', TOptions> | TimestampSchemaProperty<'updatedAt', TOptions>,
41+
Date
42+
>;
4443

4544
export interface ModelOptions {
4645
hooks?: Hooks;

0 commit comments

Comments
 (0)