Skip to content

Commit

Permalink
Remove unused generics in isGeneratorFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
paldepind committed Jul 28, 2019
1 parent fdea505 commit 4d69bb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ function isShowable(s: any): s is Showable {
);
}

export function isGeneratorFunction<A, T>(
export function isGeneratorFunction(
fn: any
): fn is (...a: any[]) => IterableIterator<T> {
): fn is (...a: any[]) => IterableIterator<any> {
return (
fn !== undefined &&
fn.constructor !== undefined &&
Expand Down Expand Up @@ -542,7 +542,7 @@ export function toComponent<A extends Child>(child: A): ToComponent<A> {
} else if (isBehavior(child)) {
return dynamic(child).mapTo({}) as any;
} else if (isGeneratorFunction(child)) {
return go(<any>child);
return go(child);
} else if (isShowable(child)) {
return text(child) as any;
} else if (Array.isArray(child)) {
Expand Down

0 comments on commit 4d69bb4

Please sign in to comment.