Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: change type for unableAutoUnmount #1966

Merged
merged 3 commits into from
Feb 10, 2023
Merged

Conversation

voskresla
Copy link
Contributor

I think this change for enableAutoUnmount type makes it easier to understand.

If ok, i can change types in this PR too )

I think this change for `enableAutoUnmount` type makes it easier to understand.
@netlify
Copy link

netlify bot commented Feb 6, 2023

Deploy Preview for vue-test-utils-docs ready!

Name Link
🔨 Latest commit 15eeaba
🔍 Latest deploy log https://app.netlify.com/sites/vue-test-utils-docs/deploys/63e626629779240007d997f6
😎 Deploy Preview https://deploy-preview-1966--vue-test-utils-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@cexbrayat cexbrayat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

I think you can update the types at the same time 👍

@@ -1886,7 +1886,7 @@ function shallowMount(Component, options?: MountingOptions): VueWrapper
**Signature:**

```ts
enableAutoUnmount(hook: Function));
enableAutoUnmount(hook: (callback: Function) => void));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe even hook: (callback: () => void) => void?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will update types, thx.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be coherent, maybe change the type here in the docs as well to be the same as the TS types?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants