Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Aug 4, 2019
1 parent 69358a4 commit dcbef1d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ export interface IEventOptions<T> {
maxSubs?: number;

/**
* Subscription notification callback.
* Notification of a new subscriber being registered.
*
* The callback takes [[ISubContext]] as the only parameter.
*/
onSubscribe?: (ctx: ISubContext<T>) => void;

/**
* Subscription-cancel notification callback.
* Notification about a cancelled subscription.
*
* The callback takes [[ISubContext]] as the only parameter.
*/
onCancel?: (ctx: ISubContext<T>) => void;
}
Expand Down

0 comments on commit dcbef1d

Please sign in to comment.