I believe all the object properties are optional, so I do not fully understand the errors. Because I've made the properties optional, but not the object itself?
Error
Expected 1 arguments, but got 0. TS2554
71 | // Get the claims on the initial page load
72 | useEffect(() => {
> 73 | fetchClaimDetails();
| ^
74 | }, []);
75 |
76 | return (
Component
interface fetchClaimDetailsQueryParams {
status?: string | null;
clientClaimId?: string | null;
}
const fetchClaimDetails = async ({
clientClaimId = null,
status = null
}: fetchClaimDetailsQueryParams) => {
......
useEffect(() => {
fetchClaimDetails();
}, []);