Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
suejung-sentry committed Nov 5, 2024
1 parent 87488de commit e9bb91b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/services/charts/useLegacyRepoCoverage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function fetchRepoCoverage({
}: {
provider: string
owner: string
body: any
body?: string
signal: AbortSignal
}) {
const path = getRepoCoverage({ provider, owner })
Expand All @@ -34,8 +34,8 @@ interface UseLegacyRepoCoverageArgs {
owner: string
branch?: string
trend?: string
body?: any
opts?: any
body?: string
opts?: unknown
query?: {
groupingUnit: string
}
Expand Down
13 changes: 12 additions & 1 deletion src/services/orgUploadToken/useRegenerateOrgUploadToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,19 @@ interface URLParams {
owner: string
}

interface RegenerateOrgUploadTokenOutput {
regenerateOrgUploadToken?: {
orgUploadToken?: string
error?: {
__typename?: string
}
}
}

export function useRegenerateOrgUploadToken(
{ onSuccess = (data: unknown) => {} } = { onSuccess: () => {} }
{ onSuccess = (data: RegenerateOrgUploadTokenOutput) => {} } = {
onSuccess: () => {},
}
) {
const { provider, owner } = useParams<URLParams>()
const queryClient = useQueryClient()
Expand Down

0 comments on commit e9bb91b

Please sign in to comment.