forked from LandOfTheRair/landoftherair-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexternal.d.ts
101 lines (80 loc) · 1.96 KB
/
external.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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
declare module '*.json' {
const value: any;
export default value;
}
declare module 'mingy' {
export class Parser {
setEnv(str: string, obj: any): void;
parse(str: string): string;
}
}
declare module 'luxon' {
export class DateTime {
static local(): number;
static fromObject(obj: any): DateTime;
minus(obj: any): DateTime;
plus(obj: any): DateTime;
year: number;
}
}
declare module 'lootastic' {
export class LootTable {
constructor(choices: any[], { rollModifier: number }?);
chooseWithReplacement(num: number): any;
chooseWithoutReplacement(num: number): any;
tryToDropEachItem(num: number): any;
}
export class LootRoller {
static rollTables(tables: LootTable[]): any[];
}
export enum LootFunctions {
WithReplacement = 'chooseWithReplacement',
WithoutReplacement = 'chooseWithoutReplacement',
EachItem = 'tryToDropEachItem'
}
}
declare module 'dice.js' {
export function roll(str: string, scope?: any): any;
}
declare module 'yamljs' {
export function load(str: string): any;
}
declare module 'mongodb' {
export class MongoClient {
static connect(opts: any): any;
collection(str: string): any;
}
export class ObjectID {
constructor(str: string);
}
}
declare module 'roman-numerals' {
export function toRoman(num: number): string;
}
declare module 'pathfinding' {
export class Grid {
constructor(width: number, height: number);
setWalkableAt(x: number, y: number, canWalk: boolean);
}
export class AStarFinder {
constructor(opts: any);
findPath(x: number, y: number, destX: number, destY: number, grid: Grid): any[];
}
enum DiagonalMovement {
Always = 1
}
}
declare module 'fantastical' {
export const species: { [key: string]: Function };
}
/*
declare module 'node-redis-pubsub' {
class NRP {
constructor(opts: any);
on(event: string, func: Function);
emit(event: string, opts: any);
quit();
}
export = NRP;
}
*/