core / rxjs / Variable

pickType

RxJS operator that filters out values that are not instances of the provided types. Returns an Observable that emits only values that are instances of the provided types.

Presentation

const pickType: <Types extends AbstractType<any>[]>(
  ...types: Types
) => OperatorFunction<unknown, Types[number]["prototype"]>;