Skip to content

chore: fix type checks #969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/chat-room/scripts/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ async function main() {

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

// fetch history
const history = await chatRoom.getHistory();
Expand Down
2 changes: 1 addition & 1 deletion examples/chat-room/scripts/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function main() {
const client = createClient<App>(process.env.ENDPOINT ?? "http://localhost:6420");

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

// call action to get existing messages
const messages = await chatRoom.getHistory();
Expand Down
2 changes: 1 addition & 1 deletion examples/chat-room/tests/chat-room.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test("chat room should handle messages", async (test) => {
const { client } = await setupTest(test, app);

// Connect to chat room
const chatRoom = client.chatRoom.connect();
const chatRoom = client.chatRoom.get().connect();

// Initial history should be empty
const initialMessages = await chatRoom.getHistory();
Expand Down
2 changes: 1 addition & 1 deletion examples/counter/tests/counter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { app } from "../actors/app";

test("it should count", async (test) => {
const { client } = await setupTest(test, app);
const counter = client.counter.connect();
const counter = client.counter.get().connect();

// Test initial count
expect(await counter.getCount()).toBe(0);
Expand Down
Loading
Loading