deno.land / x / anilist_js@0.1.0 / src / anilist.ts

نووسراو ببینە
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { Media } from './media.ts';import { People } from './people.ts';import { Search } from './search.ts';import { Lists } from './lists.ts';import { Thread } from './thread.ts';
/** * Base class to interact with the Anilist api * @since 1.0.0 * @export * @public * @class Anilist */export class Anilist { public media; public people; public search; public lists; public thread; /** * Creates an instance of Anilist. * @memberof Anilist * @ignore */ constructor() { // Run a check if permissions were granted or not. If not, then throw error. Else move on (async () => { const perm = await Deno.permissions.query({ name: 'net', host: 'graphql.anilist.co', }); if (perm.state !== 'granted') { throw new Error( 'Missing permissions to access net. Please restart process with `--allow-net=graphql.anilist.co`', ); } })();
/** * @augments Media * @see {@Link AniList.Media} * @since 1.1.0 */ this.media = new Media(); /** * @augments People * @see {@Link AniList.People} * @since 1.1.0 */ this.people = new People(); /** * @augments Search * @see {@Link AniList.Search} * @since 1.1.0 */ this.search = new Search(); /** * @augments Lists * @see {@Link AniList.Lists} * @since 1.1.0 */ this.lists = new Lists(); /** * @augments Thread * @see {@Link AniList.Thread} * @since 1.1.0 */ this.thread = new Thread(); }}
anilist_js

Version Info

Tagged at
a year ago

External Dependencies

No external dependencies 🎉