Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
andogq committed Dec 2, 2024
1 parent 19c51f7 commit 4ab9183
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/authentication/auth-demo/src/bindings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@

import type { Query } from "@qubit-rs/client";

export type { Query } from "@qubit-rs/client";

export type QubitServer = { echo_cookie: Query<[], string>, secret_endpoint: Query<[], string> };
10 changes: 10 additions & 0 deletions examples/chaos/bindings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,14 @@ import type { Metadata } from "./Metadata.ts";
import type { User } from "./User.ts";
import type { Test } from "./Test.ts";

export type { Query } from "@qubit-rs/client";
export type { Mutation } from "@qubit-rs/client";
export type { Subscription } from "@qubit-rs/client";
export type { NestedStruct } from "./NestedStruct.ts";
export type { MyEnum } from "./MyEnum.ts";
export type { UniqueType } from "./UniqueType.ts";
export type { Metadata } from "./Metadata.ts";
export type { User } from "./User.ts";
export type { Test } from "./Test.ts";

export type QubitServer = { version: Query<[], string>, count: Mutation<[], number>, countdown: Subscription<[min: number, max: number, ], number>, array: Query<[], Array<string>>, enum_test: Query<[], MyEnum>, array_type: Query<[], Array<UniqueType>>, user: { someHandler: Query<[_id: string, ], User>, create: Mutation<[name: string, email: string, age: number, ], User>, list: Query<[], Array<Test>>, asdf: Query<[], null> } };
5 changes: 5 additions & 0 deletions examples/chat-room-react/src/bindings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ import type { Mutation } from "@qubit-rs/client";
import type { Subscription } from "@qubit-rs/client";
import type { ChatMessage } from "./ChatMessage.ts";

export type { Query } from "@qubit-rs/client";
export type { Mutation } from "@qubit-rs/client";
export type { Subscription } from "@qubit-rs/client";
export type { ChatMessage } from "./ChatMessage.ts";

export type QubitServer = { get_name: Query<[], string>, send_message: Mutation<[message: string, ], null>, list_online: Subscription<[], Array<string>>, list_messages: Subscription<[], Array<ChatMessage>> };
4 changes: 4 additions & 0 deletions examples/counter/bindings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ import type { Mutation } from "@qubit-rs/client";
import type { Query } from "@qubit-rs/client";
import type { Subscription } from "@qubit-rs/client";

export type { Mutation } from "@qubit-rs/client";
export type { Query } from "@qubit-rs/client";
export type { Subscription } from "@qubit-rs/client";

export type QubitServer = { increment: Mutation<[], null>, decrement: Mutation<[], null>, add: Mutation<[n: number, ], null>, get: Query<[], number>, countdown: Subscription<[], number> };
2 changes: 2 additions & 0 deletions examples/hello-world/bindings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@

import type { Query } from "@qubit-rs/client";

export type { Query } from "@qubit-rs/client";

export type QubitServer = { hello_world: Query<[], string> };

0 comments on commit 4ab9183

Please sign in to comment.