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)
|
||||
|
||||
// warning
|
||||
app.unmount(root)
|
||||
app.unmount()
|
||||
expect(`that is not mounted`).toHaveBeenWarned()
|
||||
|
||||
app.mount(root)
|
||||
|
||||
app.unmount(root)
|
||||
app.unmount()
|
||||
expect(serializeInner(root)).toBe(``)
|
||||
})
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user