mirror of
https://github.com/Lissy93/web-check.git
synced 2025-05-22 15:10:43 +02:00
Updates hook to allow for array of job IDs
This commit is contained in:
parent
57481c8757
commit
b6dfd3321a
@ -7,11 +7,11 @@ import { AddressType } from 'utils/address-type-checker';
|
|||||||
|
|
||||||
interface UseIpAddressProps<ResultType = any> {
|
interface UseIpAddressProps<ResultType = any> {
|
||||||
// Unique identifier for this job type
|
// Unique identifier for this job type
|
||||||
jobId: string;
|
jobId: string | string[];
|
||||||
// The actual fetch request
|
// The actual fetch request
|
||||||
fetchRequest: () => Promise<ResultType>;
|
fetchRequest: () => Promise<ResultType>;
|
||||||
// Function to call to update the loading state in parent
|
// Function to call to update the loading state in parent
|
||||||
updateLoadingJobs: (job: string, newState: LoadingState, error?: string, retry?: (data?: any) => void | null, data?: any) => void;
|
updateLoadingJobs: (job: string | string[], newState: LoadingState, error?: string, retry?: (data?: any) => void | null, data?: any) => void;
|
||||||
addressInfo: {
|
addressInfo: {
|
||||||
// The hostname/ip address that we're checking
|
// The hostname/ip address that we're checking
|
||||||
address: string | undefined;
|
address: string | undefined;
|
||||||
|
Loading…
Reference in New Issue
Block a user