From: hiroki Date: Wed, 3 Feb 2021 18:09:59 +0000 (-0500) Subject: docs(type): remove unmount parameters (#2601) X-Git-Tag: v3.0.6~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18b0c9a011b7569deae433fbbdf123764db2eae8;p=thirdparty%2Fvuejs%2Fcore.git docs(type): remove unmount parameters (#2601) --- diff --git a/packages/runtime-core/__tests__/apiCreateApp.spec.ts b/packages/runtime-core/__tests__/apiCreateApp.spec.ts index 47e0eb6fa4..82fd44d40a 100644 --- a/packages/runtime-core/__tests__/apiCreateApp.spec.ts +++ b/packages/runtime-core/__tests__/apiCreateApp.spec.ts @@ -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(``) }) diff --git a/packages/runtime-core/src/apiCreateApp.ts b/packages/runtime-core/src/apiCreateApp.ts index 2896937045..869e5809f0 100644 --- a/packages/runtime-core/src/apiCreateApp.ts +++ b/packages/runtime-core/src/apiCreateApp.ts @@ -29,7 +29,7 @@ export interface App { rootContainer: HostElement | string, isHydrate?: boolean ): ComponentPublicInstance - unmount(rootContainer: HostElement | string): void + unmount(): void provide(key: InjectionKey | string, value: T): this // internal, but we need to expose these for the server-renderer and devtools