-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(create): add more details about static create function (#2390)
Flesh out what is an Observable Contract. Add note about returning TeardownLogic in passed function. Change 'subscribe' to 'onSubscription' so that there is no confusion when function is called. Switch Subscriber instance as a function argument to Observer interface, so that users are not encouraged to use Subscribers implementation details. Add note about TS signature issue. Add examples with calling observers error and returning teardown logic. Do not mark function passed to create as optional, since subscribing to Observable created in such way will throw an Error.
- Loading branch information
Showing
1 changed file
with
134 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters