Skip to content

Commit 18b0c9a

Browse files
docs(type): remove unmount parameters (#2601)
1 parent 60e05ef commit 18b0c9a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/runtime-core/__tests__/apiCreateApp.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ describe('api: createApp', () => {
6060
const app = createApp(Comp)
6161

6262
// warning
63-
app.unmount(root)
63+
app.unmount()
6464
expect(`that is not mounted`).toHaveBeenWarned()
6565

6666
app.mount(root)
6767

68-
app.unmount(root)
68+
app.unmount()
6969
expect(serializeInner(root)).toBe(``)
7070
})
7171

packages/runtime-core/src/apiCreateApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface App<HostElement = any> {
2929
rootContainer: HostElement | string,
3030
isHydrate?: boolean
3131
): ComponentPublicInstance
32-
unmount(rootContainer: HostElement | string): void
32+
unmount(): void
3333
provide<T>(key: InjectionKey<T> | string, value: T): this
3434

3535
// internal, but we need to expose these for the server-renderer and devtools

0 commit comments

Comments
 (0)