X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fcomposables%2FUtils.ts;h=851ba4318fc337474875025a85d900799ce2ebbf;hb=975570b708efc2b28b8040ecf5cdb6eb45a1b55a;hp=cf4baf5d5fe9c8b569359d248daea9b82160e917;hpb=f568f36861d62d759a95b17fbe10380eca88a71b;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/composables/Utils.ts b/ui/web/src/composables/Utils.ts index cf4baf5d..851ba431 100644 --- a/ui/web/src/composables/Utils.ts +++ b/ui/web/src/composables/Utils.ts @@ -1,5 +1,3 @@ -import util from 'node:util'; - const isUndefined = (value: unknown): boolean => { return typeof value === 'undefined'; }; @@ -30,7 +28,7 @@ export const promiseWithTimeout = ( timeoutError: Error, timeoutCallback: () => void = () => { /* This is intentional */ - } + }, ): Promise => { // Create a timeout promise that rejects in timeout milliseconds const timeoutPromise = new Promise((_, reject) => {