Skip to content

Commit 19a344c

Browse files
committed
fix(doc): add more TS types
1 parent 1e219c1 commit 19a344c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/rxjs.dev/content/guide/subject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ To achieve that with explicit calls to `connect()`, we write the following code:
118118
```ts
119119
import { interval, Subject, multicast } from 'rxjs';
120120

121-
const source = interval(500);
121+
const source: Observable<number> = interval(500);
122122
const subject = new Subject<number>();
123123
const multicasted = source.pipe(multicast(subject));
124124
let subscription1, subscription2, subscriptionConnect;

0 commit comments

Comments
 (0)