Skip to content

Commit 2f9c8d1

Browse files
Move Release and ReleaseAsset to their own files
1 parent b27d8a1 commit 2f9c8d1

2 files changed

Lines changed: 42 additions & 42 deletions

File tree

extensions/ql-vscode/src/codeql-cli/distribution.ts

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
} from "../common/logging";
2828
import { unzipToDirectoryConcurrently } from "../common/unzip-concurrently";
2929
import { reportUnzipProgress } from "../common/vscode/unzip-progress";
30+
import { Release, ReleaseAsset } from "./release";
3031

3132
/**
3233
* distribution.ts
@@ -906,48 +907,6 @@ function warnDeprecatedLauncher() {
906907
);
907908
}
908909

909-
/**
910-
* A release on GitHub.
911-
*/
912-
interface Release {
913-
assets: ReleaseAsset[];
914-
915-
/**
916-
* The creation date of the release on GitHub.
917-
*/
918-
createdAt: string;
919-
920-
/**
921-
* The id associated with the release on GitHub.
922-
*/
923-
id: number;
924-
925-
/**
926-
* The name associated with the release on GitHub.
927-
*/
928-
name: string;
929-
}
930-
931-
/**
932-
* An asset corresponding to a release on GitHub.
933-
*/
934-
interface ReleaseAsset {
935-
/**
936-
* The id associated with the asset on GitHub.
937-
*/
938-
id: number;
939-
940-
/**
941-
* The name associated with the asset on GitHub.
942-
*/
943-
name: string;
944-
945-
/**
946-
* The size of the asset in bytes.
947-
*/
948-
size: number;
949-
}
950-
951910
/**
952911
* The json returned from github for a release.
953912
*/
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* A release on GitHub.
3+
*/
4+
export interface Release {
5+
assets: ReleaseAsset[];
6+
7+
/**
8+
* The creation date of the release on GitHub.
9+
*/
10+
createdAt: string;
11+
12+
/**
13+
* The id associated with the release on GitHub.
14+
*/
15+
id: number;
16+
17+
/**
18+
* The name associated with the release on GitHub.
19+
*/
20+
name: string;
21+
}
22+
23+
/**
24+
* An asset corresponding to a release on GitHub.
25+
*/
26+
export interface ReleaseAsset {
27+
/**
28+
* The id associated with the asset on GitHub.
29+
*/
30+
id: number;
31+
32+
/**
33+
* The name associated with the asset on GitHub.
34+
*/
35+
name: string;
36+
37+
/**
38+
* The size of the asset in bytes.
39+
*/
40+
size: number;
41+
}

0 commit comments

Comments
 (0)