@@ -143,7 +143,7 @@ function OrganizationDetail() {
143143 setCreatedApiKey ( data ) ;
144144 queryClient . setQueryData < OrgApiKeysResult > (
145145 orgApiKeysQueryOptions ( orgId ) . queryKey ,
146- ( current ) => {
146+ ( current : OrgApiKeysResult | undefined ) => {
147147 const nextKey = {
148148 id : data . id ,
149149 name : data . name ,
@@ -158,7 +158,7 @@ function OrganizationDetail() {
158158 return { keys : [ nextKey ] } ;
159159 }
160160
161- if ( current . keys . some ( ( key ) => key . id === data . id ) ) {
161+ if ( current . keys . some ( ( key : OrgApiKeysResult [ "keys" ] [ number ] ) => key . id === data . id ) ) {
162162 return current ;
163163 }
164164
@@ -188,14 +188,14 @@ function OrganizationDetail() {
188188
189189 queryClient . setQueryData < OrgApiKeysResult > (
190190 orgApiKeysQueryOptions ( orgId ) . queryKey ,
191- ( current ) => {
191+ ( current : OrgApiKeysResult | undefined ) => {
192192 if ( ! current ) {
193193 return current ;
194194 }
195195
196196 return {
197197 ...current ,
198- keys : current . keys . filter ( ( key ) => key . id !== keyId ) ,
198+ keys : current . keys . filter ( ( key : OrgApiKeysResult [ "keys" ] [ number ] ) => key . id !== keyId ) ,
199199 } ;
200200 } ,
201201 ) ;
@@ -428,7 +428,7 @@ function OrganizationDetail() {
428428 < LoadingCard label = "Loading members..." />
429429 ) : members . length > 0 ? (
430430 < div className = "grid gap-4 md:grid-cols-2" >
431- { members . map ( ( member ) => (
431+ { members . map ( ( member : OrgMembersResult [ "members" ] [ number ] ) => (
432432 < Card key = { member . id } >
433433 < CardContent className = "p-5 space-y-2" >
434434 < div className = "flex items-center justify-between gap-3" >
@@ -455,7 +455,7 @@ function OrganizationDetail() {
455455 < LoadingCard label = "Loading invitations..." />
456456 ) : invitations . length > 0 ? (
457457 < div className = "grid gap-4 md:grid-cols-2" >
458- { invitations . map ( ( invitation ) => (
458+ { invitations . map ( ( invitation : OrgInvitationsResult [ "invitations" ] [ number ] ) => (
459459 < Card key = { invitation . id } >
460460 < CardContent className = "p-5 space-y-3" >
461461 < div className = "flex items-start justify-between gap-3" >
@@ -492,7 +492,7 @@ function OrganizationDetail() {
492492 < LoadingCard label = "Loading api keys..." />
493493 ) : apiKeys . length > 0 ? (
494494 < div className = "grid gap-4 md:grid-cols-2" >
495- { apiKeys . map ( ( key ) => (
495+ { apiKeys . map ( ( key : OrgApiKeysResult [ "keys" ] [ number ] ) => (
496496 < Card key = { key . id } >
497497 < CardContent className = "p-5 space-y-3" >
498498 < div className = "space-y-1" >
0 commit comments