Skip to content

Commit a8bbe3f

Browse files
committed
fix(types): add default type to render's parameter
1 parent 81c2de9 commit a8bbe3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>
4747
* Render into a container which is appended to document.body. It should be used with cleanup.
4848
*/
4949
export function render<
50-
Q extends Queries,
50+
Q extends Queries = typeof queries,
5151
Container extends Element | DocumentFragment = HTMLElement
5252
>(
5353
ui: React.ReactElement,

0 commit comments

Comments
 (0)