Open thuong-infotrack-vn opened 3 weeks ago
Hi currently I'm using react-query mutation How can I turn this
reportGetNoLawyersPerDay = ( query?: { /** @format date-time */ TimeFrom?: string; /** @format date-time */ TimeTo?: string; }, params: RequestParams = {} );
into this
reportGetNoLawyersPerDay = ({ query, params = {} }: { query?: { /** @format date-time */ TimeFrom?: string; /** @format date-time */ TimeTo?: string; }; params?: RequestParams; });
because I wanna use only one parameter for that function, is there any option for this?
Hi currently I'm using react-query mutation How can I turn this
into this
because I wanna use only one parameter for that function, is there any option for this?