Skip to content

Commit abeeeb3

Browse files
committed
feat: added types to KubeConfig#loadFromOptions
1 parent 4736874 commit abeeeb3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,12 @@ export class KubeConfig {
180180
this.currentContext = obj['current-context'];
181181
}
182182

183-
public loadFromOptions(options: any): void {
183+
public loadFromOptions(options: {
184+
clusters: Cluster[];
185+
contexts: Context[];
186+
currentContext: Context['name'];
187+
users: User[];
188+
}): void {
184189
this.clusters = options.clusters;
185190
this.contexts = options.contexts;
186191
this.users = options.users;

0 commit comments

Comments
 (0)