Skip to content

Commit

Permalink
Merge pull request #199 from zcstarr/master
Browse files Browse the repository at this point in the history
fix: typo and improve typing for service runner client
  • Loading branch information
zcstarr committed Oct 7, 2019
2 parents a9f537c + cf39aa6 commit dce9117
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"version": {
"type": "string"
},
"enviornments": {
"environments": {
"type": "array",
"items": {
"type": "string"
Expand All @@ -73,7 +73,8 @@
"installed"
]
}
}
},
"required": ["environments"]
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/generated-types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ export type StringFek9G2ZM = "all" | "running" | "available" | "installed";
export type BooleanQg3XFxa5 = boolean;
export type ArrayFoEQPbEQ = StringWxzVcTo3[];
export type StringTLqBBstC = "active" | "available" | "installed";
export interface ObjectT9Jrtxk4 {
export interface ObjectTWHiNvMj {
name?: StringWxzVcTo3;
version?: StringWxzVcTo3;
enviornments?: ArrayFoEQPbEQ;
environments: ArrayFoEQPbEQ;
state?: StringTLqBBstC;
[k: string]: any;
}
export type ArrayLRvfa67I = ObjectT9Jrtxk4[];
export type ArrayPPoPAFM6 = ObjectTWHiNvMj[];
export interface ObjectVZsrKceH {
name?: StringWxzVcTo3;
version?: StringWxzVcTo3;
Expand Down Expand Up @@ -52,7 +52,7 @@ export interface ObjectDLZvXzsu {
}
export type ArrayZUy9Ik8E = ObjectDLZvXzsu[];
export type InstallService = (serviceName: StringWxzVcTo3, version: StringWxzVcTo3) => Promise<BooleanQg3XFxa5>;
export type ListServices = (filter: StringFek9G2ZM) => Promise<ArrayLRvfa67I>;
export type ListServices = (filter: StringFek9G2ZM) => Promise<ArrayPPoPAFM6>;
export type ListInstalledServices = () => Promise<ArrayKvcc3Slb>;
export type ListRunningServices = () => Promise<ArrayZUy9Ik8E>;
export type StartService = (name: StringWxzVcTo3, version: StringWxzVcTo3, environment: StringWxzVcTo3) => Promise<ObjectDLZvXzsu>;

0 comments on commit dce9117

Please sign in to comment.