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

fix: correct exposure type of usePagination #528

Closed MeetinaXD closed 2 months ago

MeetinaXD commented 2 months ago

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

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

fix the incorrect exposure type of the use hook. (usePagination, useForm, useRetriable etc...)

文档 / Docs

This issue is caused by incorrectly defining the return type of this in UseHookExposure. I added a generic context type called SelfType to make it possible to pass "this" through manually.

测试 / Testing

ALL tests passed.

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 3c1f83748d62e7aee53b8d0729f65c6ec6fb03e6

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

This PR includes changesets to release 1 package | Name | Type | | ----- | ----- | | alova | Patch |

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