Skip to content

Commit

Permalink
docs(dematerialize.ts): move away from bracket casts (#6737)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakovljevic-mladen committed Jan 11, 2022
1 parent 7268bd3 commit 5e8ab00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/internal/operators/dematerialize.ts
Expand Up @@ -27,9 +27,9 @@ import { OperatorSubscriber } from './OperatorSubscriber';
* ```ts
* import { NextNotification, ErrorNotification, of, dematerialize } from 'rxjs';
*
* 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 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 5e8ab00

Please sign in to comment.