Skip to content

Fix render() function return type #29

@szabototo89

Description

@szabototo89

https://github.com/testing-library/angular-testing-library/blob/master/projects/testing-library/src/lib/testing-library.ts#L16

There is no explicit type for render function declaration and typescript generates this declaration type file:

// testing-library.d.ts
import { Type } from '@angular/core';
import { RenderOptions } from './models';
export declare function render<T>(template: string, renderOptions: RenderOptions<T>): any;
export declare function render<T>(component: Type<T>, renderOptions?: RenderOptions<T>): any;

Could you specify their return types with RenderResult?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions