#
Interface: SubscribeEvents#
Properties#
onComplete• Optional
onComplete: () => void
#
Type declaration:â–¸ (): void
Returns: void
Defined in: packages/gqless/src/Client/client.ts:72
Defined in: packages/gqless/src/Client/client.ts:72
#
onData• onData: (data
: Record<string, unknown>) => void
#
Type declaration:â–¸ (data
: Record<string, unknown>): void
#
Parameters:Name | Type |
---|---|
data | Record<string, unknown> |
Returns: void
Defined in: packages/gqless/src/Client/client.ts:66
Defined in: packages/gqless/src/Client/client.ts:66
#
onError• onError: (payload
: { data
: null | Record<string, unknown> ; error
: gqlessError }) => void
#
Type declaration:â–¸ (payload
: { data
: null | Record<string, unknown> ; error
: gqlessError }): void
#
Parameters:Name | Type |
---|---|
payload | object |
payload.data | null | Record<string, unknown> |
payload.error | gqlessError |
Returns: void
Defined in: packages/gqless/src/Client/client.ts:67
Defined in: packages/gqless/src/Client/client.ts:67
#
onStart• Optional
onStart: () => void
#
Type declaration:â–¸ (): void
Returns: void
Defined in: packages/gqless/src/Client/client.ts:71
Defined in: packages/gqless/src/Client/client.ts:71