-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
We use the wix-fetch with request options like credentials and see a lots of TS errors. May you add more request options to types and add more variants for better autocomplete.
And may you also change property body, headers etc... as a not required property.
For example:
type RequestMode = "cors" | "no-cors" | "same-origin";
type RequestCredentials = "omit" | "include" | "same-origin";
type RequestCache =
"default"
| "force-cache"
| "no-cache"
| "no-store"
| "only-if-cached"
| "reload";
type WixFetchRequest = {
method?: string;
headers?: object;
body?: string;
mode?: RequestMode;
credentials?: RequestCredentials;
cache?: RequestCache;
};Thanks!
- node-fetch types: https://npm.runkit.com/@types/node-fetch/index.d.ts?t=1568036747096
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels