aboutsummaryrefslogtreecommitdiff
path: root/src/packages.d.ts
blob: 14bbeed76b9740594aa3e2d6c3dd5e40ef89072b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
declare module 'ytsr' {
  interface VideoResult {
    title: string;
    duration: string;
    link: string;
    live: boolean;
    type: string;
  }

  interface SearchResult {
    items: VideoResult[];
  }

  export default function (search: string, options: object): Promise<SearchResult>;
}

declare module 'array-shuffle' {
  export default function <T>(arr: T[]): T[];
}