From 683f33b4cb1808f4f1a7ddd21ddbe770e98741f3 Mon Sep 17 00:00:00 2001 From: Simeon Romanov Date: Fri, 2 Feb 2024 06:41:46 +0300 Subject: [PATCH] fixes --- frontend/bindings.rs | 2 ++ frontend/src/types/rust.d.ts | 18 ++++++++---------- 2 files changed, 10 insertions(+), 10 deletions(-) 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;