Move Release and ReleaseAsset to their own files
This commit is contained in:
@@ -27,6 +27,7 @@ import {
|
|||||||
} from "../common/logging";
|
} from "../common/logging";
|
||||||
import { unzipToDirectoryConcurrently } from "../common/unzip-concurrently";
|
import { unzipToDirectoryConcurrently } from "../common/unzip-concurrently";
|
||||||
import { reportUnzipProgress } from "../common/vscode/unzip-progress";
|
import { reportUnzipProgress } from "../common/vscode/unzip-progress";
|
||||||
|
import { Release, ReleaseAsset } from "./release";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* distribution.ts
|
* distribution.ts
|
||||||
@@ -906,48 +907,6 @@ function warnDeprecatedLauncher() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* A release on GitHub.
|
|
||||||
*/
|
|
||||||
interface Release {
|
|
||||||
assets: ReleaseAsset[];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The creation date of the release on GitHub.
|
|
||||||
*/
|
|
||||||
createdAt: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The id associated with the release on GitHub.
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The name associated with the release on GitHub.
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* An asset corresponding to a release on GitHub.
|
|
||||||
*/
|
|
||||||
interface ReleaseAsset {
|
|
||||||
/**
|
|
||||||
* The id associated with the asset on GitHub.
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The name associated with the asset on GitHub.
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The size of the asset in bytes.
|
|
||||||
*/
|
|
||||||
size: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The json returned from github for a release.
|
* The json returned from github for a release.
|
||||||
*/
|
*/
|
||||||
|
|||||||
41
extensions/ql-vscode/src/codeql-cli/release.ts
Normal file
41
extensions/ql-vscode/src/codeql-cli/release.ts
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
/**
|
||||||
|
* A release on GitHub.
|
||||||
|
*/
|
||||||
|
export interface Release {
|
||||||
|
assets: ReleaseAsset[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The creation date of the release on GitHub.
|
||||||
|
*/
|
||||||
|
createdAt: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The id associated with the release on GitHub.
|
||||||
|
*/
|
||||||
|
id: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The name associated with the release on GitHub.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An asset corresponding to a release on GitHub.
|
||||||
|
*/
|
||||||
|
export interface ReleaseAsset {
|
||||||
|
/**
|
||||||
|
* The id associated with the asset on GitHub.
|
||||||
|
*/
|
||||||
|
id: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The name associated with the asset on GitHub.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The size of the asset in bytes.
|
||||||
|
*/
|
||||||
|
size: number;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user