|
1 | 1 | /* eslint-disable */ |
2 | 2 | // @ts-nocheck |
3 | | -/* @@@@@@@@@@@@@ & ############### |
| 3 | +/* |
| 4 | + @@@@@@@@@@@@@ & ############### |
4 | 5 | @@@@@@@@@@@@@@ &&& ############### |
5 | 6 | @@@@@@@@@@@@@@ &&&&& ############### |
6 | 7 | ############### &&&&& ############### |
7 | 8 | ######## Generated by Qubit! ######## |
8 | 9 | ############### &&&&& ############### |
9 | 10 | ############### &&&&& @@@@@@@@@@@@@@ |
10 | 11 | ############### && @@@@@@@@@@@@@@ |
11 | | -############### & @@@@@@@@@@@@@ */ |
| 12 | +############### & @@@@@@@@@@@@@ |
12 | 13 |
|
| 14 | +*/ |
13 | 15 | import type { Query, Mutation, Subscription } from "@qubit-rs/client"; |
14 | 16 | export type User = { name: string, email: string, age: number, metadata: Metadata, }; |
| 17 | +export type Test = { a: number, b: boolean, }; |
| 18 | +export type Metadata = { param_a: string, param_b: number, param_c: boolean, more_metadata: Metadata | null, }; |
15 | 19 | export type UniqueType = { value: number, }; |
16 | 20 | export type NestedStruct = { a: number, b: boolean, }; |
17 | | -export type Test = { a: number, b: boolean, }; |
18 | 21 | export type MyEnum = "A" | { "B": number } | { "C": { field: number, } } | { "D": NestedStruct }; |
19 | | -export type Metadata = { param_a: string, param_b: number, param_c: boolean, more_metadata: Metadata | null, }; |
20 | | -export type QubitServer = { user: { asdf: Query<[], null>, create: Mutation<[name: string, email: string, age: number], User>, list: Query<[], Array<Test>>, someHandler: Query<[_id: string], User>, }, array: Query<[], Array<string>>, array_type: Query<[], Array<UniqueType>>, count: Mutation<[], number>, countdown: Subscription<[min: number, max: number], number>, enum_test: Query<[], MyEnum>, version: Query<[], string>, }; |
21 | | - |
| 22 | +export type QubitServer = { array: Query<[], Array<string>>, array_type: Query<[], Array<UniqueType>>, count: Mutation<[], number>, countdown: Subscription<[min: number, max: number], number>, enum_test: Query<[], MyEnum>, version: Query<[], string>, user: { asdf: Query<[], null>, create: Mutation<[name: string, email: string, age: number], User>, list: Query<[], Array<Test>>, someHandler: Query<[_id: string], User>, }, }; |
0 commit comments