-
-
Notifications
You must be signed in to change notification settings - Fork 166
/
Copy pathexample.js
32 lines (29 loc) · 803 Bytes
/
example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
export default class AbstractSource {
name = 'Missing name'
description = 'No description provided'
/** @type {import('./type-definitions').Accuracy} */
accuracy = 'Low'
/** @type {import('./type-definitions').Config} */
config = {}
/**
* Gets results for single episode
* @type {import('./type-definitions').SearchFunction}
*/
single (options) {
throw new Error('Source doesn\'t implement single')
}
/**
* Gets results for batch of episodes
* @type {import('./type-definitions').SearchFunction}
*/
batch (options) {
throw new Error('Source doesn\'t implement batch')
}
/**
* Gets results for a movie
* @type {import('./type-definitions').SearchFunction}
*/
movie (options) {
throw new Error('Source doesn\'t implement movie')
}
}