Add Gerrit.Change to types.js
Use it in gr-confirm-submit-dialog.js
Change-Id: I939d7a7c3d61918100c2a01f0e1684dce8112c67
diff --git a/polygerrit-ui/app/elements/change/gr-confirm-submit-dialog/gr-confirm-submit-dialog.js b/polygerrit-ui/app/elements/change/gr-confirm-submit-dialog/gr-confirm-submit-dialog.js
index 037d53d..1daab4c 100644
--- a/polygerrit-ui/app/elements/change/gr-confirm-submit-dialog/gr-confirm-submit-dialog.js
+++ b/polygerrit-ui/app/elements/change/gr-confirm-submit-dialog/gr-confirm-submit-dialog.js
@@ -50,12 +50,9 @@
static get properties() {
return {
- /**
- * @type {{
- * is_private: boolean,
- * subject: string,
- * }}
- */
+ /**
+ * @type {Gerrit.Change}
+ */
change: Object,
/**
diff --git a/polygerrit-ui/app/types/types.js b/polygerrit-ui/app/types/types.js
index 7c42d76..583c2b3 100644
--- a/polygerrit-ui/app/types/types.js
+++ b/polygerrit-ui/app/types/types.js
@@ -87,6 +87,15 @@
Gerrit.ChangeFetchRequest;
/**
+ * @typedef {{
+ * is_private: boolean,
+ * subject: string,
+ * unresolved_comment_count: number,
+ * }}
+ */
+Gerrit.Change;
+
+/**
* Object to describe a request for passing into _send.
* - method is the HTTP method to use in the request.
* - url is the URL for the request