Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

Commit 822bc2f

Browse files
committed
style(operators): Move expected console output after subscription
The expected console output should be after the subscription. Also removed the generics from the method signature.
1 parent 4d86b01 commit 822bc2f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/operator-docs/transformation/bufferTime.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const bufferTime: OperatorDoc = {
77
bufferTimeSpan: number,
88
bufferCreationInterval: number,
99
maxBufferSize: number,
10-
scheduler: Scheduler): Observable<T[]>`,
10+
scheduler: Scheduler): Observable`,
1111
parameters: [
1212
{
1313
name: 'bufferTimeSpan',
@@ -66,6 +66,8 @@ export const bufferTime: OperatorDoc = {
6666
const buffered = clicks.pipe(
6767
bufferTime(2500)
6868
);
69+
buffered.subscribe(x => console.log(x));
70+
6971
/*
7072
Example console output
7173
@@ -100,13 +102,10 @@ export const bufferTime: OperatorDoc = {
100102
101103
[]
102104
*/
103-
104-
105-
buffered.subscribe(x => console.log(x));
106105
`,
107106
externalLink: {
108107
platform: 'JSBin',
109-
url: 'http://jsbin.com/fuqewiy/6/embed?js,console,output'
108+
url: 'http://jsbin.com/fuqewiy/7/embed?js,console,output'
110109
}
111110
},
112111
{
@@ -120,6 +119,7 @@ export const bufferTime: OperatorDoc = {
120119
const buffered = clicks.pipe(
121120
bufferTime(2000, 5000)
122121
);
122+
buffered.subscribe(x => console.log(x));
123123
124124
/*
125125
Example console output:
@@ -158,11 +158,10 @@ export const bufferTime: OperatorDoc = {
158158
159159
[]
160160
*/
161-
buffered.subscribe(x => console.log(x));
162161
`,
163162
externalLink: {
164163
platform: 'JSBin',
165-
url: 'http://jsbin.com/xohupot/4/embed?js,console,output'
164+
url: 'http://jsbin.com/xohupot/6/embed?js,console,output'
166165
}
167166
}
168167
],

0 commit comments

Comments
 (0)