Skip to content

Commit 43d9fd5

Browse files
NAOR YUVALNAOR YUVAL
authored andcommitted
fix: assert through unknown when copying optional PolicyGrant fields
TS2352: PolicyGrantLike does not overlap Record<string, unknown> for direct cast. Made-with: Cursor
1 parent 422ce4e commit 43d9fd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sdk/createPolicyGrant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function createPolicyGrant(input: CreatePolicyGrantInput): PolicyGrantLik
6262
for (const key of optionalFields) {
6363
const val = input[key];
6464
if (val !== undefined && val !== null) {
65-
(grant as Record<string, unknown>)[key] = val;
65+
(grant as unknown as Record<string, unknown>)[key] = val;
6666
}
6767
}
6868
return grant;

0 commit comments

Comments
 (0)