Skip to content

Commit

Permalink
ran typeshare script
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Giraldo committed Mar 31, 2024
1 parent 2597bd2 commit aae685b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
8 changes: 7 additions & 1 deletion crates/ott-balancer-protocol/src/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ pub struct MonolithState {
#[typeshare]
pub struct RoomState {
pub name: RoomName,
pub clients: u32,
pub clients: Vec<ClientState>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[typeshare]
pub struct ClientState {
pub id: ClientId,
}

pub enum Event {
Expand Down
6 changes: 5 additions & 1 deletion packages/ott-vis/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ export type MonolithId = string;

export type BalancerId = string;

export interface ClientState {
id: ClientId;
}

Check warning on line 16 in packages/ott-vis/generated.ts

View check run for this annotation

Codecov / codecov/patch

packages/ott-vis/generated.ts#L13-L16

Added lines #L13 - L16 were not covered by tests
export interface RoomState {
name: RoomName;
clients: number;
clients: ClientState[];
}

export interface MonolithState {
Expand Down
6 changes: 5 additions & 1 deletion server/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ export type MonolithId = string;

export type BalancerId = string;

export interface ClientState {
id: ClientId;
}

Check warning on line 16 in server/generated.ts

View check run for this annotation

Codecov / codecov/patch

server/generated.ts#L13-L16

Added lines #L13 - L16 were not covered by tests
export interface RoomState {
name: RoomName;
clients: number;
clients: ClientState[];

Check warning on line 19 in server/generated.ts

View check run for this annotation

Codecov / codecov/patch

server/generated.ts#L19

Added line #L19 was not covered by tests
}

export interface MonolithState {
Expand Down

0 comments on commit aae685b

Please sign in to comment.