-
Notifications
You must be signed in to change notification settings - Fork 0
/
d.ts
36 lines (36 loc) · 1022 Bytes
/
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
/**
* Nymph Config
*/
export interface Config {
/**
* Cache recently retrieved entities to speed up database queries. Uses more
* memory.
*/
cache: boolean;
/**
* Cache entities after they're accessed this many times.
*/
cacheThreshold: number;
/**
* The number of recently retrieved entities to cache. If you're running out
* of memory, try lowering this value. 0 means unlimited.
*/
cacheLimit: number;
/**
* When querying for multiple entities with NymphREST, if the list is empty,
* return a 404 error.
*/
emptyListError: boolean;
/**
* A function to log info messages. By default, uses the `debug` package.
*/
debugInfo: (source: string, message: string) => void;
/**
* A function to log debug messages. By default, uses the `debug` package.
*/
debugLog: (source: string, message: string) => void;
/**
* A function to log error messages. By default, uses the `debug` package.
*/
debugError: (source: string, message: string) => void;
}