Less restrictive createNewReply method
createNewReply just needs a few properties of commentInfo.
So objects that contains only a few properties of commentInfo
can use this method
This is needed for http://cl/691469409 to work.
Google-Bug-Id: b/376469062
Release-Notes: skip
Change-Id: I0d806833748f5a087c3c31a2572fb7bb1d1d8410
diff --git a/polygerrit-ui/app/utils/comment-util.ts b/polygerrit-ui/app/utils/comment-util.ts
index 1324061..3cb1407 100644
--- a/polygerrit-ui/app/utils/comment-util.ts
+++ b/polygerrit-ui/app/utils/comment-util.ts
@@ -198,7 +198,10 @@
}
export function createNewReply(
- replyingTo: CommentInfo,
+ replyingTo: Pick<
+ CommentInfo,
+ 'id' | 'path' | 'patch_set' | 'line' | 'range' | 'side' | 'parent'
+ >,
message: string,
unresolved: boolean
): DraftInfo {