From 700c756bf31fe1ed9dec12c98482d9621396338a Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Mon, 18 Jul 2022 15:02:01 +0300 Subject: [PATCH] Improve typing for a function Signed-off-by: Janne Savolainen --- src/common/utils/get-random-id.injectable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils/get-random-id.injectable.ts b/src/common/utils/get-random-id.injectable.ts index 3b96c50633..b6d8b99f41 100644 --- a/src/common/utils/get-random-id.injectable.ts +++ b/src/common/utils/get-random-id.injectable.ts @@ -7,7 +7,7 @@ import { v4 as getRandomId } from "uuid"; const getRandomIdInjectable = getInjectable({ id: "get-random-id", - instantiate: () => getRandomId, + instantiate: () => () => getRandomId(), causesSideEffects: true, });