UNPKG

node-ttv

Version:

A Node.js wrapper for Twitch.tv's helix API.

12 lines (11 loc) 542 B
import Resource from "../Resource"; declare type Outcome = { title: string; [key: string]: any; }; export default class Predictions extends Resource { getPredictions(token: string, broadcaster_id: string, id?: string, after?: string, first?: string): Promise<string>; createPrediction(token: string, title: string, outcomes: Outcome[], prediction_window: number): Promise<string>; endPrediction(token: string, broadcaster_id: string, id: string, status: string, winning_outcome_id?: string): Promise<string>; } export {};