booru-api/types/config.d.ts
2024-12-28 09:13:34 -05:00

38 lines
615 B
TypeScript

type Environment = {
port: number;
host: string;
development: boolean;
};
type RedisConfig = {
host: string;
port: number;
username?: string;
password?: string;
};
type IBooruDefaults = {
search: string;
random: string;
id: string | [string, string];
};
type IBooruConfigMap = {
[key: string]: {
enabled: boolean;
name: string;
aliases: string[];
endpoint: string;
functions: IBooruDefaults;
auth?: Record<string, string>;
};
};
type IBooruConfig = {
enabled: boolean;
name: string;
aliases: string[];
endpoint: string;
functions: IBooruDefaults;
auth?: Record<string, string>;
};