mirror of https://github.com/vuejs/core.git
docs(type): remove unmount parameters (#2601)
This commit is contained in:
parent
60e05eff23
commit
18b0c9a011
|
@ -60,12 +60,12 @@ describe('api: createApp', () => {
|
||||||
const app = createApp(Comp)
|
const app = createApp(Comp)
|
||||||
|
|
||||||
// warning
|
// warning
|
||||||
app.unmount(root)
|
app.unmount()
|
||||||
expect(`that is not mounted`).toHaveBeenWarned()
|
expect(`that is not mounted`).toHaveBeenWarned()
|
||||||
|
|
||||||
app.mount(root)
|
app.mount(root)
|
||||||
|
|
||||||
app.unmount(root)
|
app.unmount()
|
||||||
expect(serializeInner(root)).toBe(``)
|
expect(serializeInner(root)).toBe(``)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ export interface App<HostElement = any> {
|
||||||
rootContainer: HostElement | string,
|
rootContainer: HostElement | string,
|
||||||
isHydrate?: boolean
|
isHydrate?: boolean
|
||||||
): ComponentPublicInstance
|
): ComponentPublicInstance
|
||||||
unmount(rootContainer: HostElement | string): void
|
unmount(): void
|
||||||
provide<T>(key: InjectionKey<T> | string, value: T): this
|
provide<T>(key: InjectionKey<T> | string, value: T): this
|
||||||
|
|
||||||
// internal, but we need to expose these for the server-renderer and devtools
|
// internal, but we need to expose these for the server-renderer and devtools
|
||||||
|
|
Loading…
Reference in New Issue