Skip to content

Commit 1fb34c6

Browse files
committed
#1583 actually removed any
1 parent 7f0748b commit 1fb34c6

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/frontend/src/pages/FinancePage/FinanceComponents/RefundModal.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import LoadingIndicator from '../../../components/LoadingIndicator';
88
import NERFormModal from '../../../components/NERFormModal';
99
import ReactHookTextField from '../../../components/ReactHookTextField';
1010
import { useToast } from '../../../hooks/toasts.hooks';
11+
import { Reimbursement } from 'shared';
12+
import { UseMutateAsyncFunction } from 'react-query';
1113

1214
const schema = yup.object().shape({
1315
amount: yup
@@ -30,7 +32,15 @@ const schema = yup.object().shape({
3032
interface RefundModalProps {
3133
showModal: boolean;
3234
handleClose: () => void;
33-
mutateAsync: (data: any) => void; // if anyone can figure out how to change this without raising type errors, be my guest
35+
mutateAsync: UseMutateAsyncFunction<
36+
Reimbursement,
37+
Error,
38+
{
39+
amount: number;
40+
dateReceived: string;
41+
},
42+
unknown
43+
>;
3444
isLoading: boolean;
3545
defaultValues?: RefundModalInputs;
3646
title: string;

0 commit comments

Comments
 (0)