Skip to content

Commit 0009053

Browse files
authored
fix: type RenderResult.unmount as returning void (#88)
unmount calls preact's render(null, container), which returns nothing, so the boolean return type never matched runtime behavior. Fixes #76
1 parent 90585d6 commit 0009053

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎types/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type RenderResult<Q extends Queries = typeof queries> = {
99
baseElement: Element
1010
debug: (baseElement?: Element | DocumentFragment) => void
1111
rerender: (ui: ComponentChild) => void
12-
unmount: () => boolean
12+
unmount: () => void
1313
asFragment: () => DocumentFragment
1414
} & { [P in keyof Q]: BoundFunction<Q[P]> }
1515

0 commit comments

Comments
 (0)