]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
docs(type): remove unmount parameters (#2601)
authorhiroki <hiroki.osame@gmail.com>
Wed, 3 Feb 2021 18:09:59 +0000 (13:09 -0500)
committerGitHub <noreply@github.com>
Wed, 3 Feb 2021 18:09:59 +0000 (19:09 +0100)
packages/runtime-core/__tests__/apiCreateApp.spec.ts
packages/runtime-core/src/apiCreateApp.ts

index 47e0eb6fa4f5ae783040467ef824a026040f3bfd..82fd44d40a0bfb20f22d0e4426363de08c939393 100644 (file)
@@ -60,12 +60,12 @@ describe('api: createApp', () => {
     const app = createApp(Comp)
 
     // warning
-    app.unmount(root)
+    app.unmount()
     expect(`that is not mounted`).toHaveBeenWarned()
 
     app.mount(root)
 
-    app.unmount(root)
+    app.unmount()
     expect(serializeInner(root)).toBe(``)
   })
 
index 2896937045ed48b8bcc3c1d8aaa1d4a53388a93a..869e5809f05e3393fde0f0184892d2ff347d1158 100644 (file)
@@ -29,7 +29,7 @@ export interface App<HostElement = any> {
     rootContainer: HostElement | string,
     isHydrate?: boolean
   ): ComponentPublicInstance
-  unmount(rootContainer: HostElement | string): void
+  unmount(): void
   provide<T>(key: InjectionKey<T> | string, value: T): this
 
   // internal, but we need to expose these for the server-renderer and devtools