JS: Test and QLDoc for RxJS model

This commit is contained in:
Asger Feldthaus
2021-01-21 12:08:22 +00:00
parent 144d04f3ce
commit 1d1149f4cd
3 changed files with 20 additions and 2 deletions

View File

@@ -97,6 +97,7 @@ typeInferenceMismatch
| promise.js:5:25:5:32 | source() | promise.js:5:8:5:33 | bluebir ... urce()) |
| promise.js:10:24:10:31 | source() | promise.js:10:8:10:32 | Promise ... urce()) |
| promise.js:12:20:12:27 | source() | promise.js:13:8:13:23 | resolver.promise |
| rxjs.js:3:1:3:8 | source() | rxjs.js:10:14:10:17 | data |
| sanitizer-function.js:12:17:12:24 | source() | sanitizer-function.js:14:10:14:14 | taint |
| sanitizer-function.js:12:17:12:24 | source() | sanitizer-function.js:33:14:33:18 | taint |
| sanitizer-guards.js:2:11:2:18 | source() | sanitizer-guards.js:4:8:4:8 | x |

View File

@@ -0,0 +1,11 @@
import { map, catchError } from 'rxjs/operators';
source()
.pipe(
map(x => x + 'foo'),
map(x => x + 'bar'),
catchError(err => {})
)
.subscribe(data => {
sink(data)
});