Skip to content

Commit

Permalink
fix: render function typing (#32)
Browse files Browse the repository at this point in the history
Closes #29
  • Loading branch information
szabototo89 authored and timdeschryver committed Jul 15, 2019
1 parent 7fead9c commit 79cd685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/testing-library/src/lib/testing-library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class WrapperComponent implements OnInit {
}
}

export async function render<T>(template: string, renderOptions: RenderOptions<T>);
export async function render<T>(component: Type<T>, renderOptions?: RenderOptions<T>);
export async function render<T>(template: string, renderOptions: RenderOptions<T>): Promise<RenderResult>;
export async function render<T>(component: Type<T>, renderOptions?: RenderOptions<T>): Promise<RenderResult>;
export async function render<T>(
templateOrComponent: string | Type<T>,
renderOptions: RenderOptions<T> = {},
Expand Down

0 comments on commit 79cd685

Please sign in to comment.