-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.d.ts
31 lines (25 loc) · 861 Bytes
/
index.d.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
import { Item } from './types/Item';
import { Profession } from './types/Profession';
import { Zone } from './types/Zone';
import { CharacterClass } from './types/CharacterClass';
declare module 'wow-classic-items' {
export interface DataBaseOptions {
iconSrc: 'blizzard' | 'wowhead' | false;
}
class DataBase<T> extends Array<T> {}
export class Items extends DataBase<Item> {
constructor(options: DataBaseOptions);
getItemLink(itemId: number): string;
}
export class Professions extends DataBase<Profession> {
constructor(options: DataBaseOptions);
get(name: string): Profession;
}
export class Zones extends DataBase<Zone> {
constructor(options: DataBaseOptions);
}
export class Classes extends DataBase<CharacterClass> {
constructor(options: DataBaseOptions)
get(name: string): CharacterClass;
}
}