Skip to content

Commit 6974830

Browse files
Copilothotlong
andcommitted
Improve type assertion in SCIM listResponse helper
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent c2df200 commit 6974830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/spec/src/auth/scim.zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ export const SCIM = {
934934
listResponse: <T>(resources: T[], totalResults?: number): SCIMListResponse => ({
935935
schemas: [SCIM_SCHEMAS.LIST_RESPONSE],
936936
totalResults: totalResults ?? resources.length,
937-
Resources: resources as any,
937+
Resources: resources as Array<SCIMResource | Record<string, any>>,
938938
startIndex: 1,
939939
itemsPerPage: resources.length,
940940
}),

0 commit comments

Comments
 (0)