Skip to content

Commit

Permalink
Improve typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kayahr committed Jan 16, 2025
1 parent addf83d commit 6555082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/Subscribable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface Subscribable<T = unknown> {
* @param observer - The observer to subscribe.
* @return Object which can be used to unsubscribe the observer.
*/
subscribe(observer: Observer<T>): Unsubscribable;
subscribe(observer: Observer<T> | ((value: T) => void)): Unsubscribable;

/**
* Constructs a new observer using the given callback functions and subscribes it to this object.
Expand Down

0 comments on commit 6555082

Please sign in to comment.