Skip to content

Commit

Permalink
fix(spectator): fix incorrect method typing (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
asheremetev authored and NetanelBasal committed Sep 17, 2019
1 parent d5e238d commit a405438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/spectator/src/lib/base/dom-spectator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export abstract class DomSpectator<I> extends BaseSpectator {
return getChildren<R>(this.debugElement)(directiveOrSelector, options);
}

public queryLast<R extends Element[]>(selector: string | DOMSelector, options?: { root: boolean }): R | null;
public queryLast<R extends Element>(selector: string | DOMSelector, options?: { root: boolean }): R | null;
public queryLast<R>(directive: Type<R>): R | null;
public queryLast<R>(directiveOrSelector: Type<any> | string, options: { read: Token<R> }): R | null;
public queryLast<R>(directiveOrSelector: QueryType, options?: QueryOptions<R>): R | Element | null {
Expand Down

0 comments on commit a405438

Please sign in to comment.