relay-tools / react-relay-network-modern

Relay Modern Network Layer with middlewares — cache, auth, retry, batch, logger, SSR
MIT License
327 stars 62 forks source link

Update typescript types to support fetchTimeout TimeoutAfterFn #160

Open alex-statsig opened 4 months ago

alex-statsig commented 4 months ago

Flow types already indicated fetchTimeout in RetryMiddlewareOpts could be a function of attempt (instead of just a number). This exposes that in the typescript types as well.