mirror of
https://github.com/Lissy93/web-check.git
synced 2025-01-23 06:38:47 +01: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> {
|
||||
// Unique identifier for this job type
|
||||
jobId: string;
|
||||
jobId: string | string[];
|
||||
// The actual fetch request
|
||||
fetchRequest: () => Promise<ResultType>;
|
||||
// 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: {
|
||||
// The hostname/ip address that we're checking
|
||||
address: string | undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user