From 6ef722c3ae9d9a6cc0082789d6d3fbe583535948 Mon Sep 17 00:00:00 2001 From: Julian Kniephoff Date: Mon, 26 Aug 2024 09:54:05 +0200 Subject: [PATCH] Properly type `createPolicy` --- src/utils/resourceUtils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/resourceUtils.ts b/src/utils/resourceUtils.ts index d817540ad0..d65ad290c4 100644 --- a/src/utils/resourceUtils.ts +++ b/src/utils/resourceUtils.ts @@ -588,8 +588,7 @@ export const buildThemeBody = (values) => { }; // creates an empty policy with the role from the argument -// @ts-expect-error TS(7006): Parameter 'role' implicitly has an 'any' type. -export const createPolicy = (role) => { +export const createPolicy = (role: string): TransformedAcl => { return { role: role, read: false,