refactor: use strict typing

This commit is contained in:
Carlos Valente
2025-03-21 19:44:16 +01:00
committed by Carlos Valente
parent 4ed38340e0
commit 178640bfc4
39 changed files with 339 additions and 246 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export function ensureDirectory(directory: string): void {
/**
* Ensures that a filename ends with .json extension
*/
export function ensureJsonExtension(filename: string | undefined): string | undefined {
export function ensureJsonExtension(filename: string): string {
if (!filename) return filename;
return filename.endsWith('.json') ? filename : `${filename}.json`;
}