Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
archeoss committed Feb 2, 2024
1 parent e354e7f commit 683f33b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 2 additions & 0 deletions frontend/bindings.rs
Original file line number Diff line number Diff line change
@@ -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;
18 changes: 8 additions & 10 deletions frontend/src/types/rust.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Check failure on line 5 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`

Check failure on line 5 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`
hostname: Hostname;

Check failure on line 6 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`

Check failure on line 6 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`
/** [Optional] Credentials used for BOB authentication */

Check failure on line 7 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`

Check failure on line 7 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`
credentials?: Credentials;

Check failure on line 8 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`

Check failure on line 8 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`
}

/** 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 */

Check failure on line 13 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`

Check failure on line 13 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`
login: string;

Check failure on line 14 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`

Check failure on line 14 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`
/** Password used during auth */

Check failure on line 15 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`

Check failure on line 15 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`
password: string;

Check failure on line 16 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`

Check failure on line 16 in frontend/src/types/rust.d.ts

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `··`
}

type Hostname = string;

0 comments on commit 683f33b

Please sign in to comment.