diff --git a/frontend/bindings.rs b/frontend/bindings.rs index e167e3fc..5514ff90 100644 --- a/frontend/bindings.rs +++ b/frontend/bindings.rs @@ -1,4 +1,6 @@ // Some structs that must be redefined for transpiling without changing actual types on backend +use tsync::tsync; + #[tsync] pub type Hostname = String; diff --git a/frontend/src/types/rust.d.ts b/frontend/src/types/rust.d.ts index 23c05f60..6e0ea626 100644 --- a/frontend/src/types/rust.d.ts +++ b/frontend/src/types/rust.d.ts @@ -2,18 +2,16 @@ /** Data needed to connect to a BOB cluster */ interface BobConnectionData { - /** Address to connect to */ - hostname: Hostname; - /** [Optional] Credentials used for BOB authentication */ - credentials?: Credentials; + /** Address to connect to */ + hostname: Hostname; + /** [Optional] Credentials used for BOB authentication */ + credentials?: Credentials; } /** Optional auth credentials for a BOB cluster */ interface Credentials { - /** Login used during auth */ - login: string; - /** Password used during auth */ - password: string; + /** Login used during auth */ + login: string; + /** Password used during auth */ + password: string; } - -type Hostname = string;