c212805
1
2
3
4
5
6
7
8
9
import { Fetch } from './types' export const resolveFetch = (customFetch?: Fetch): Fetch => { if (customFetch) { return (...args) => customFetch(...args) } return (...args) => fetch(...args) }