function
stable
Returns an Observable that emits the items you specify as arguments after it finishes emitting items emitted by the source Observable.
endWith<T>(...array: Array<T | SchedulerLike>): MonoTypeOperatorFunction<T>
array | Type: |
MonoTypeOperatorFunction<T>
: An Observable that emits the items emitted by the source Observable and then emits the items in the specified Iterable.
import { of } from 'rxjs'; import { endWith } from 'rxjs/operators'; of('hi', 'how are you?', 'sorry, I have to go now').pipe( endWith('goodbye!'), ) .subscribe(word => console.log(word)); // result: // 'hi' // 'how are you?' // 'sorry, I have to go now' // 'goodbye!'
endWith(scheduler: SchedulerLike): MonoTypeOperatorFunction<T>
scheduler | Type: |
MonoTypeOperatorFunction<T>
endWith(v1: A, scheduler: SchedulerLike): OperatorFunction<T, T | A>
v1 | Type: |
scheduler | Type: |
OperatorFunction<T, T | A>
endWith(v1: A, v2: B, scheduler: SchedulerLike): OperatorFunction<T, T | A | B>
v1 | Type: |
v2 | Type: |
scheduler | Type: |
OperatorFunction<T, T | A | B>
endWith(v1: A, v2: B, v3: C, scheduler: SchedulerLike): OperatorFunction<T, T | A | B | C>
v1 | Type: |
v2 | Type: |
v3 | Type: |
scheduler | Type: |
OperatorFunction<T, T | A | B | C>
endWith(v1: A, v2: B, v3: C, v4: D, scheduler: SchedulerLike): OperatorFunction<T, T | A | B | C | D>
v1 | Type: |
v2 | Type: |
v3 | Type: |
v4 | Type: |
scheduler | Type: |
OperatorFunction<T, T | A | B | C | D>
endWith(v1: A, v2: B, v3: C, v4: D, v5: E, scheduler: SchedulerLike): OperatorFunction<T, T | A | B | C | D | E>
v1 | Type: |
v2 | Type: |
v3 | Type: |
v4 | Type: |
v5 | Type: |
scheduler | Type: |
OperatorFunction<T, T | A | B | C | D | E>
endWith(v1: A, v2: B, v3: C, v4: D, v5: E, v6: F, scheduler: SchedulerLike): OperatorFunction<T, T | A | B | C | D | E | F>
v1 | Type: |
v2 | Type: |
v3 | Type: |
v4 | Type: |
v5 | Type: |
v6 | Type: |
scheduler | Type: |
OperatorFunction<T, T | A | B | C | D | E | F>
endWith(v1: A): OperatorFunction<T, T | A>
v1 | Type: |
OperatorFunction<T, T | A>
endWith(v1: A, v2: B): OperatorFunction<T, T | A | B>
v1 | Type: |
v2 | Type: |
OperatorFunction<T, T | A | B>
endWith(v1: A, v2: B, v3: C): OperatorFunction<T, T | A | B | C>
v1 | Type: |
v2 | Type: |
v3 | Type: |
OperatorFunction<T, T | A | B | C>
endWith(v1: A, v2: B, v3: C, v4: D): OperatorFunction<T, T | A | B | C | D>
v1 | Type: |
v2 | Type: |
v3 | Type: |
v4 | Type: |
OperatorFunction<T, T | A | B | C | D>
endWith(v1: A, v2: B, v3: C, v4: D, v5: E): OperatorFunction<T, T | A | B | C | D | E>
v1 | Type: |
v2 | Type: |
v3 | Type: |
v4 | Type: |
v5 | Type: |
OperatorFunction<T, T | A | B | C | D | E>
endWith(v1: A, v2: B, v3: C, v4: D, v5: E, v6: F): OperatorFunction<T, T | A | B | C | D | E | F>
v1 | Type: |
v2 | Type: |
v3 | Type: |
v4 | Type: |
v5 | Type: |
v6 | Type: |
OperatorFunction<T, T | A | B | C | D | E | F>
endWith(...array: Z[]): OperatorFunction<T, T | Z>
array | Type: |
OperatorFunction<T, T | Z>
endWith(...array: Array<Z | SchedulerLike>): OperatorFunction<T, T | Z>
array | Type: |
OperatorFunction<T, T | Z>
© 2015–2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/operators/endWith