1 | import {Options} from "miniget"
|
2 |
|
3 | export interface Author {
|
4 | name: string,
|
5 | profile: string,
|
6 | uri: string
|
7 | }
|
8 |
|
9 | export interface Thumbnail {
|
10 | url: string,
|
11 | width: number,
|
12 | height: number
|
13 | }
|
14 |
|
15 | export interface Length {
|
16 | ms: number,
|
17 | sec: number
|
18 | }
|
19 |
|
20 | export interface SearchResult {
|
21 | type: "video" | "playlist",
|
22 | identifier: string,
|
23 | uri: string,
|
24 | title: string,
|
25 | author: Author,
|
26 | length: Length,
|
27 | isStream: boolean,
|
28 | count?: number,
|
29 | thumbnails: Thumbnail[]
|
30 | }
|
31 |
|
32 | export interface SimpleYTOptions extends Options {
|
33 | filter: "video" | "playlist"
|
34 | }
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | export default function simpleYT(query: string, options?: SimpleYTOptions): SearchResult[]
|
43 |
|
\ | No newline at end of file |