Event map for FetchEngine - maps event names to their data types.
Event names have been simplified by removing the fetch- prefix. This provides cleaner API while maintaining full type safety.
fetch-
// Subscribe to eventsengine.on('before-request', (data) => console.log('Request starting:', data.url));engine.on('cache-hit', (data) => console.log('Cache hit:', data.key));engine.on('state-set', (data) => console.log('State changed:', data.current)); Copy
// Subscribe to eventsengine.on('before-request', (data) => console.log('Request starting:', data.url));engine.on('cache-hit', (data) => console.log('Cache hit:', data.key));engine.on('state-set', (data) => console.log('State changed:', data.current));
Instance state type
Instance headers type
Instance params type
Event map for FetchEngine - maps event names to their data types.
Event names have been simplified by removing the
fetch-prefix. This provides cleaner API while maintaining full type safety.Example