Skip to content

Commit 1c4c41a

Browse files
author
ysaskia
committed
fix: missing Constructor constraint to first render() type signature
1 parent 696181e commit 1c4c41a

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
@@ -30,7 +30,7 @@ export interface RenderOptions<Q extends Queries = typeof queries> {
3030
}
3131

3232
export function render<C extends SvelteComponent>(
33-
component: C,
33+
component: ComponentProps<C>,
3434
componentOptions?: SvelteComponentOptions<C>,
3535
renderOptions?: Omit<RenderOptions, 'queries'>
3636
): RenderResult<C>

0 commit comments

Comments
 (0)