Add alias for imports

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Jonathan
2025-05-23 21:56:42 +02:00
committed by Sacha Al Himdani
parent 1253145d3b
commit faf1ce0eb9
23 changed files with 482 additions and 472 deletions

View File

@@ -22,7 +22,7 @@ export function groupBy<T>(
/**
* Check that a value is empty (null, undefined, empty string, empty array, empty object)
*/
export function isEmpty(v: unknown) {
export function isEmpty(v: unknown): boolean {
if (Array.isArray(v)) {
return v.find((v) => !isEmpty(v)) === undefined;
}

View File

@@ -25,7 +25,7 @@ export function getRiskImpacts(__: Translator) {
];
}
export function getTreatment(__: Translator, treatment: string): string {
export function getTreatment(__: Translator, treatment?: string): string {
switch (treatment) {
case "MITIGATED":
return __("Mitigate");