[REFACTORING]: Enhance existing TypeScript types and improve clarity
Description
It's just a first small PR to suggest some TypeScript type improvement, ofc, the review is still in progress and this is the first suggestion ^^
Note:
The type change in the reduce method for example aims to reduce boilerplate by allowing TypeScript to infer types automatically, rather than specifying them explicitly.
I use Record<string, string[]> because I think this syntaxe is much better for readability, this assertion can also be { [key: string]: string[] }
[REFACTORING]: Enhance existing TypeScript types and improve clarity
Description
Note:
Record<string, string[]>
because I think this syntaxe is much better for readability, this assertion can also be{ [key: string]: string[] }