Skip to content

Commit

Permalink
Restore some type info
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Nov 16, 2023
1 parent 93cdb96 commit 4d94cb4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const notificationsLogic = kea<notificationsLogicType>([
clearTimeout(values.pollTimeout)

try {
const response = await api.get(
const response = await api.get<ChangesResponse>(
`api/projects/${teamLogic.values.currentTeamId}/activity_log/important_changes`
)
// we can't rely on automatic success action here because we swallow errors so always succeed
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/scenes/PreflightCheck/preflightLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const preflightLogic = kea<preflightLogicType>([
null as PreflightStatus | null,
{
loadPreflight: async () => {
const response = await api.get('_preflight/')
const response = await api.get<PreflightStatus>('_preflight/')
return response
},
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/scenes/retention/retentionPeopleLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const retentionPeopleLogic = kea<retentionPeopleLogicType>([
__default: {} as RetentionTablePeoplePayload,
loadPeople: async (rowIndex: number) => {
const urlParams = toParams({ ...values.apiFilters, selected_interval: rowIndex })
return await api.get(`api/person/retention/?${urlParams}`)
return await api.get<RetentionTablePeoplePayload>(`api/person/retention/?${urlParams}`)
},
},
})),
Expand Down

0 comments on commit 4d94cb4

Please sign in to comment.