Skip to content

Commit

Permalink
Improve the TypeScript definition ObservableLike type
Browse files Browse the repository at this point in the history
Fixes #1685
  • Loading branch information
sindresorhus authored and novemberborn committed May 5, 2019
1 parent 5bae97c commit c2d8218
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.d.ts
@@ -1,5 +1,6 @@
export interface ObservableLike {
subscribe(observer: (value: any) => void): void;
subscribe(observer: (value: unknown) => void): void;
[Symbol.observable](): ObservableLike;
}

export type Constructor = (new (...args: Array<any>) => any);
Expand Down

0 comments on commit c2d8218

Please sign in to comment.