Merge "Add `declare` to some interfaces to prevent renaming"
diff --git a/polygerrit-ui/app/api/diff.ts b/polygerrit-ui/app/api/diff.ts
index 90cf17b..945afe4 100644
--- a/polygerrit-ui/app/api/diff.ts
+++ b/polygerrit-ui/app/api/diff.ts
@@ -306,12 +306,12 @@
code_range: LineRange;
}
-export interface FileRange {
+export declare interface FileRange {
basePath?: string;
path: string;
}
-export interface PatchRange {
+export declare interface PatchRange {
patchNum: RevisionPatchSetNum;
basePatchNum: BasePatchSetNum;
}
diff --git a/polygerrit-ui/app/api/rest-api.ts b/polygerrit-ui/app/api/rest-api.ts
index a99771b..25d8ad6 100644
--- a/polygerrit-ui/app/api/rest-api.ts
+++ b/polygerrit-ui/app/api/rest-api.ts
@@ -522,7 +522,7 @@
* The CommentInfo entity contains information about an inline comment.
* https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#comment-info
*/
-export interface CommentInfo {
+export declare interface CommentInfo {
id: UrlEncodedCommentId;
updated: Timestamp;
// TODO(TS): Make this required. Every comment must have patch_set set.
@@ -613,7 +613,7 @@
* The ContextLine entity contains the line number and line text of a single line of the source file content.
* https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#context-line
*/
-export interface ContextLine {
+export declare interface ContextLine {
line_number: number;
context_line: string;
}
@@ -1301,7 +1301,7 @@
* The FixSuggestionInfo entity represents a suggested fix
* https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#fix-suggestion-info
*/
-export interface FixSuggestionInfoInput {
+export declare interface FixSuggestionInfoInput {
description: string;
replacements: FixReplacementInfo[];
}
@@ -1310,7 +1310,7 @@
* The FixReplacementInfo entity describes how the content of a file should be replaced by another content
* https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#fix-replacement-info
*/
-export interface FixReplacementInfo {
+export declare interface FixReplacementInfo {
path: string;
range: CommentRange;
replacement: string;
@@ -1318,7 +1318,7 @@
// The UUID of the suggested fix.
export type FixId = BrandType<string, '_fixId'>;
-export interface FixSuggestionInfo extends FixSuggestionInfoInput {
+export declare interface FixSuggestionInfo extends FixSuggestionInfoInput {
fix_id: FixId;
description: string;
replacements: FixReplacementInfo[];
diff --git a/polygerrit-ui/app/types/common.ts b/polygerrit-ui/app/types/common.ts
index 720899f..b25398f 100644
--- a/polygerrit-ui/app/types/common.ts
+++ b/polygerrit-ui/app/types/common.ts
@@ -1633,7 +1633,7 @@
* The RelatedChangesInfo entity contains information about related changes.
* https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#related-changes-info
*/
-export interface RelatedChangesInfo {
+export declare interface RelatedChangesInfo {
changes: RelatedChangeAndCommitInfo[];
}
@@ -1641,7 +1641,7 @@
* The RelatedChangeAndCommitInfo entity contains information about a related change and commit.
* https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#related-change-and-commit-info
*/
-export interface RelatedChangeAndCommitInfo {
+export declare interface RelatedChangeAndCommitInfo {
project: RepoName;
change_id?: ChangeId;
commit: CommitInfoWithRequiredCommit;