added doga

This commit is contained in:
szabomarton
2025-02-25 09:55:29 +01:00
parent 5174ab4cc4
commit 13254e5623
1149 changed files with 80161 additions and 0 deletions

23
25_02_24/node_modules/@tinyhttp/logger/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,23 @@
import { ServerResponse as Response, IncomingMessage as Request } from 'node:http';
export declare enum LogLevel {
error = "error",
warn = "warn",
trace = "trace",
info = "info",
log = "log"
}
export interface LoggerOptions {
methods?: string[];
output?: {
color: boolean;
filename?: string;
callback: (string: string) => void;
level?: LogLevel;
};
timestamp?: boolean | {
format?: string;
};
emoji?: boolean;
ip?: boolean;
}
export declare const logger: (options?: LoggerOptions) => (req: Request, res: Response, next?: () => void) => void;