agraboso / agraboso/redux-api-middleware
Consider to allow Request interface to be used in endpoint
未关闭
enhancement
- 主要语言
- JavaScript
- 星标
- 1.5k
- 派生
- 190
- PR 合并指标
- 30 天内没有已合并 PR
描述
Now endpoint is only allowing `string` or `function`. Do you think it makes sense to allow [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) interface to be whitelisted as well? Since the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/GlobalFetch/fetch) is accepting both `string` and `Request` object.
https://github.com/agraboso/redux-api-middleware/blob/master/src/validation.js#L107
贡献指南
评估
这个 Issue 还没有评估数据。