twitch-graphql
Version:
A graphql wrapper for the Twitch API.
31 lines (30 loc) • 792 B
TypeScript
import { ApiClient } from 'twitch';
export declare const onConnect: (connectionParams: any) => any;
export declare const context: ({ req, ...props }: {
[x: string]: any;
req: any;
}) => Promise<{
user_id: any;
client_secret: any;
refresh_token: any;
authProvider: import("twitch/lib").AuthProvider;
twitchClient: ApiClient;
callbackUrl: string;
webhookPort: string | number;
app: any;
pubsub: any;
twitch_id?: undefined;
secret?: undefined;
} | {
twitch_id: any;
refresh_token: any;
secret: any;
user_id: any;
callbackUrl: string;
webhookPort: string | number;
authProvider: import("twitch/lib").AuthProvider;
twitchClient: ApiClient;
app: any;
client_secret?: undefined;
pubsub?: undefined;
}>;