Skip to content

Commit 79cd685

Browse files
szabototo89timdeschryver
authored andcommitted
fix: render function typing (#32)
Closes #29
1 parent 7fead9c commit 79cd685

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/testing-library/src/lib/testing-library.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class WrapperComponent implements OnInit {
1313
}
1414
}
1515

16-
export async function render<T>(template: string, renderOptions: RenderOptions<T>);
17-
export async function render<T>(component: Type<T>, renderOptions?: RenderOptions<T>);
16+
export async function render<T>(template: string, renderOptions: RenderOptions<T>): Promise<RenderResult>;
17+
export async function render<T>(component: Type<T>, renderOptions?: RenderOptions<T>): Promise<RenderResult>;
1818
export async function render<T>(
1919
templateOrComponent: string | Type<T>,
2020
renderOptions: RenderOptions<T> = {},

0 commit comments

Comments
 (0)