feature: Adds basic command layout.
This commit is contained in:
parent
56338544b5
commit
32b77b12a2
6 changed files with 237 additions and 17 deletions
|
@ -32,10 +32,12 @@ function parseBackendProviderString(data: string): BackendParsedProviderString {
|
|||
|
||||
if (typeof jsonData.ip != "string")
|
||||
throw new Error("IP field is not a string");
|
||||
|
||||
if (typeof jsonData.port != "number") throw new Error("Port is not a number");
|
||||
|
||||
if (typeof jsonData.username != "string")
|
||||
throw new Error("Username is not a string");
|
||||
|
||||
if (typeof jsonData.privateKey != "string")
|
||||
throw new Error("Private key is not a string");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue