Skip to content
Permalink
Browse files

Improve the TypeScript definition `ObservableLike` type

Fixes #1685
  • Loading branch information...
sindresorhus authored and novemberborn committed May 5, 2019
1 parent 5bae97c commit c2d8218ba78b26fe1368df183924757cd27555e4
Showing with 2 additions and 1 deletion.
  1. +2 −1 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);

0 comments on commit c2d8218

Please sign in to comment.
You can’t perform that action at this time.