MCPcopy Index your code
hub / github.com/winfunc/opcode / ApiCallOptions

Interface ApiCallOptions

src/hooks/useApiCall.ts:3–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { useState, useCallback, useRef, useEffect } from 'react';
2
3interface ApiCallOptions {
4 onSuccess?: (data: any) => void;
5 onError?: (error: Error) => void;
6 showErrorToast?: boolean;
7 showSuccessToast?: boolean;
8 successMessage?: string;
9 errorMessage?: string;
10}
11
12interface ApiCallState<T> {
13 data: T | null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected