@chtsinc/ch-playwright-report
Version:
Custom Playwright Reporter that logs test and execution results to MongoDB
8 lines (7 loc) • 337 B
TypeScript
/**
* Extracts the file extension (without the dot) from a filename.
* @param filename - The name (or path) of the file.
* @returns The lowercase extension (e.g. "html"), or undefined if none.
*/
export declare function getExtension(filename: string): string | undefined;
export declare function getContentType(ext: string): string;