docs(type): remove unmount parameters (#2601)

This commit is contained in:
hiroki 2021-02-03 13:09:59 -05:00 committed by GitHub
parent 60e05eff23
commit 18b0c9a011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View 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(``)
})

View 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