Skip to content

Commit

Permalink
Properly type createPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKniephoff committed Sep 2, 2024
1 parent 4253105 commit 6ef722c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/resourceUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6ef722c

Please sign in to comment.