Skip to content

Commit

Permalink
#220: replaced any with Partial
Browse files Browse the repository at this point in the history
  • Loading branch information
basmasking committed May 9, 2024
1 parent b9d840a commit 7b83987
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/domain/creator/data/CreatorData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ export default class CreatorData
return this.#mutate({ email });
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
#mutate(values: Record<string, any>)
#mutate(values: Partial<CreatorData>)
{
return new CreatorData(
values.id ?? this.id,
Expand Down
3 changes: 1 addition & 2 deletions src/domain/post/data/PostData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ export default class PostData
return this.#mutate({ deleted: true });
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
#mutate(values: Record<string, any>)
#mutate(values: Partial<PostData>)
{
return new PostData(
values.id ?? this.#id,
Expand Down
3 changes: 1 addition & 2 deletions src/domain/reaction/data/ReactionData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ export default class ReactionData
return this.#mutate({ deleted: true });
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
#mutate(values: Record<string, any>)
#mutate(values: Partial<ReactionData>)
{
return new ReactionData(
values.id ?? this.#id,
Expand Down

0 comments on commit 7b83987

Please sign in to comment.