aboutsummaryrefslogtreecommitdiff
path: root/src/packages.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/packages.d.ts')
-rw-r--r--src/packages.d.ts22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/packages.d.ts b/src/packages.d.ts
index 7e199a3..14bbeed 100644
--- a/src/packages.d.ts
+++ b/src/packages.d.ts
@@ -1,3 +1,19 @@
-declare module 'node-emoji';
-declare module 'ytsr';
-declare module 'array-shuffle';
+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[];
+}