diff --git a/src/providers.ts b/src/providers.ts index 148820b..00caa5f 100644 --- a/src/providers.ts +++ b/src/providers.ts @@ -1,6 +1,6 @@ import {Provider} from './types/providers'; -export const fetchProvider: Provider = (url: string, data, requestConfig: object) => { +export const fetchProvider: Provider = (url, data, requestConfig) => { return fetch(url, {...requestConfig, body: JSON.stringify(data)}).then((res: any) => { if (!res.ok) { throw res.json();