Skip to content

Commit cc3cf04

Browse files
committed
chore: fix type checks
1 parent 9c72b2f commit cc3cf04

File tree

8 files changed

+430
-384
lines changed

8 files changed

+430
-384
lines changed

examples/chat-room/scripts/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ async function main() {
1010

1111
// connect to chat room - now accessed via property
1212
// can still pass parameters like room
13-
const chatRoom = client.chatRoom.connect(room, {
13+
const chatRoom = client.chatRoom.get(room, {
1414
params: { room },
15-
});
15+
}).connect();
1616

1717
// fetch history
1818
const history = await chatRoom.getHistory();

examples/chat-room/scripts/connect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ async function main() {
77
const client = createClient<App>(process.env.ENDPOINT ?? "http://localhost:6420");
88

99
// connect to chat room - now accessed via property
10-
const chatRoom = client.chatRoom.connect();
10+
const chatRoom = client.chatRoom.get().connect();
1111

1212
// call action to get existing messages
1313
const messages = await chatRoom.getHistory();

examples/chat-room/tests/chat-room.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ test("chat room should handle messages", async (test) => {
66
const { client } = await setupTest(test, app);
77

88
// Connect to chat room
9-
const chatRoom = client.chatRoom.connect();
9+
const chatRoom = client.chatRoom.get().connect();
1010

1111
// Initial history should be empty
1212
const initialMessages = await chatRoom.getHistory();

examples/counter/tests/counter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { app } from "../actors/app";
44

55
test("it should count", async (test) => {
66
const { client } = await setupTest(test, app);
7-
const counter = client.counter.connect();
7+
const counter = client.counter.get().connect();
88

99
// Test initial count
1010
expect(await counter.getCount()).toBe(0);

0 commit comments

Comments
 (0)