Skip to content

Commit

Permalink
docs: change type for unableAutoUnmount (#1966)
Browse files Browse the repository at this point in the history
  • Loading branch information
voskresla committed Feb 10, 2023
1 parent d1f9209 commit 85c0a87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api/index.md
Expand Up @@ -1886,7 +1886,7 @@ function shallowMount(Component, options?: MountingOptions): VueWrapper
**Signature:**
```ts
enableAutoUnmount(hook: Function));
enableAutoUnmount(hook: (callback: () => void) => void);
disableAutoUnmount(): void;
```
Expand Down
2 changes: 1 addition & 1 deletion src/utils/autoUnmount.ts
Expand Up @@ -9,7 +9,7 @@ export function disableAutoUnmount() {
wrapperInstances.length = 0
}

export function enableAutoUnmount(hook: Function) {
export function enableAutoUnmount(hook: (callback: () => void) => void) {
if (isEnabled) {
throw new Error('enableAutoUnmount cannot be called more than once')
}
Expand Down

0 comments on commit 85c0a87

Please sign in to comment.