Skip to content

Commit fd8b5c7

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type Constructor<T> = new (...args: any[]) => T;
1818
*/
1919
export type RenderResult<C extends SvelteComponent, Q extends Queries = typeof queries> = {
2020
container: HTMLElement
21-
component: C
21+
component: Constructor<C>
2222
debug: (el?: HTMLElement | DocumentFragment) => void
2323
rerender: (options: SvelteComponentOptions<C>) => void
2424
unmount: () => void

0 commit comments

Comments
 (0)