alovajs / alova

Workflow-Streamlined next-generation request tools. Extremely streamline API integration workflow, just one step
https://alova.js.org
MIT License
2.96k stars 108 forks source link

feat: add inference for send arguments #537

Closed MeetinaXD closed 1 month ago

MeetinaXD commented 2 months ago

这个 PR 是什么类型?/ What type of PR is this?

这个 PR 做了什么?/ What does this PR do?

feat: add inference for send arguments

测试 / Testing

ALL tests passed.

By the way, I added some type tests for send arguments. I hope it will work.

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 01a231020e138e6831df2116efc9c634324210f2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages | Name | Type | | --------------------- | ----- | | alova | Minor | | @alova/adapter-uniapp | Major | | @alova/shared | Patch | | @alova/adapter-axios | Major | | @alova/mock | Major | | @alova/adapter-taro | Major | | @alova/adapter-xhr | Major | | @alova/psc | Major | | @alova/vue-options | Major |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

JOU-amjs commented 2 months ago

还有几个点

  1. AlovaEvent里的args没有推导
  2. usePagination的send从第三个参数开始推倒,类似useForm
  3. middleware中的context.args没有推导