All checks were successful
Code quality checks / biome (push) Successful in 10s
- Replace custom logger with @atums/echo library - Restructure imports using # path aliases - Add request performance tracking and better request logging - Improve type definitions and error handling - Add custom file serving capability - Update biome configuration with stricter linting rules - Add comprehensive API documentation (DOCS.md)
33 lines
581 B
TypeScript
33 lines
581 B
TypeScript
type Environment = {
|
|
port: number;
|
|
host: string;
|
|
development: boolean;
|
|
};
|
|
|
|
type IBooruDefaults = {
|
|
search: string;
|
|
random: string;
|
|
id: string | [string, string];
|
|
};
|
|
|
|
type IBooruConfigMap = {
|
|
[key: string]: {
|
|
enabled: boolean;
|
|
name: string;
|
|
aliases: string[];
|
|
endpoint: string;
|
|
functions: IBooruDefaults;
|
|
autocomplete?: string;
|
|
};
|
|
};
|
|
|
|
type IBooruConfig = {
|
|
enabled: boolean;
|
|
name: string;
|
|
aliases: string[];
|
|
endpoint: string;
|
|
functions: IBooruDefaults;
|
|
autocomplete?: string;
|
|
};
|
|
|
|
export type { Environment, IBooruDefaults, IBooruConfigMap, IBooruConfig };
|