UNPKG

twitch-graphql

Version:
24 lines (23 loc) 805 B
export interface Chat { channel: string; displayName: string; message: string; } export declare const ChatPubSubResolvers: { Subscription: { newChat: { subscribe: (_: unknown, args: { channel: string; }, { user_id, secret, refresh_token }: GraphQLModules.Context) => Promise<AsyncIterator<unknown, any, undefined>>; resolve: (chat: any) => any; }; }; Mutation: { sendChat: (_: any, args: { channel: string; message: string; }, { user_id, secret, refresh_token, twitch_id }: GraphQLModules.Context) => Promise<boolean>; }; }; export declare const ChatPubSubSchema: import("graphql").DocumentNode; export declare const ChatPubSubModule: import("graphql-modules").Module;