arvox-backend
Version:
Un framework backend moderne et modulaire basé sur Hono, TypeScript et l'architecture hexagonale avec authentification Better Auth + Drizzle intégrée
75 lines • 1.84 kB
TypeScript
/**
* Framework configuration interface
*/
import type { AuthConfig } from './auth.type';
export interface FrameworkConfig {
appName?: string;
version?: string;
description?: string;
port?: number;
router?: any;
environment?: 'development' | 'staging' | 'production';
serverUrl?: string;
cors?: {
origin?: string | string[];
methods?: string[];
headers?: string[];
credentials?: boolean;
};
logging?: {
requests?: boolean;
errors?: boolean;
level?: 'error' | 'warn' | 'info' | 'debug';
};
security?: {
headers?: boolean;
rateLimit?: {
enabled: boolean;
windowMs: number;
max: number;
};
};
swagger?: {
enabled?: boolean;
title?: string;
description?: string;
version?: string;
path?: string;
};
apiReference?: {
pageTitle?: string;
theme?: 'deepSpace' | 'default' | 'purple' | 'bluePlanet' | 'saturn' | 'kepler' | 'mars' | 'moon';
isEditable?: boolean;
layout?: 'modern' | 'classic';
darkMode?: boolean;
url?: string;
metaData?: {
applicationName?: string;
author?: string;
creator?: string;
publisher?: string;
robots?: string;
description?: string;
};
};
auth?: AuthConfig;
}
/**
* Module configuration interface
*/
export interface ModuleConfig {
name: string;
enabled: boolean;
priority?: number;
dependencies?: string[];
config?: Record<string, any>;
}
/**
* Service configuration interface
*/
export interface ServiceConfig {
name: string;
enabled: boolean;
config?: Record<string, any>;
}
//# sourceMappingURL=config.type.d.ts.map