Skip to content

Commit

Permalink
docs(dematerialize): fix TS errors in dematerialize example
Browse files Browse the repository at this point in the history
  • Loading branch information
jakovljevic-mladen committed Dec 7, 2021
1 parent df209af commit fb9a0f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/internal/operators/dematerialize.ts
Expand Up @@ -25,11 +25,11 @@ import { OperatorSubscriber } from './OperatorSubscriber';
* Convert an Observable of Notifications to an actual Observable
*
* ```ts
* import { of, dematerialize } from 'rxjs';
* import { NextNotification, ErrorNotification, of, dematerialize } from 'rxjs';
*
* const notifA = { kind: 'N', value: 'A' };
* const notifB = { kind: 'N', value: 'B' };
* const notifE = { kind: 'E', error: new TypeError('x.toUpperCase is not a function') }
* const notifA = <NextNotification<string>>{ kind: 'N', value: 'A' };
* const notifB = <NextNotification<string>>{ kind: 'N', value: 'B' };
* const notifE = <ErrorNotification>{ kind: 'E', error: new TypeError('x.toUpperCase is not a function') };
*
* const materialized = of(notifA, notifB, notifE);
*
Expand Down

0 comments on commit fb9a0f7

Please sign in to comment.