aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/installation/interfaces.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/installation/interfaces.ts')
-rw-r--r--editors/code/src/installation/interfaces.ts26
1 files changed, 26 insertions, 0 deletions
diff --git a/editors/code/src/installation/interfaces.ts b/editors/code/src/installation/interfaces.ts
new file mode 100644
index 000000000..f54e24e26
--- /dev/null
+++ b/editors/code/src/installation/interfaces.ts
@@ -0,0 +1,26 @@
1export interface GithubRepo {
2 name: string;
3 owner: string;
4}
5
6export interface ArtifactMetadata {
7 releaseName: string;
8 downloadUrl: string;
9}
10
11
12export enum BinarySourceType { ExplicitPath, GithubBinary }
13
14export type BinarySource = EplicitPathSource | GithubBinarySource;
15
16export interface EplicitPathSource {
17 type: BinarySourceType.ExplicitPath;
18 path: string;
19}
20
21export interface GithubBinarySource {
22 type: BinarySourceType.GithubBinary;
23 repo: GithubRepo;
24 dir: string;
25 file: string;
26}