Skip to content

Commit 70eae15

Browse files
committed
Break up Credential type into two interfaces
1 parent 93302bc commit 70eae15

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/start-proxy/types.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
export type Credential = {
2-
type: string;
3-
host?: string;
4-
url?: string;
1+
export interface Credential extends Registry {
52
username?: string;
63
password?: string;
74
token?: string;
8-
};
5+
}
6+
7+
export interface Registry {
8+
type: string;
9+
host?: string;
10+
url?: string;
11+
}

0 commit comments

Comments
 (0)