/** * @license Use of this source code is governed by an MIT-style license that * can be found in the LICENSE file at https://github.com/cartant/rxjs-etc */ import { Observable, OperatorFunction } from "rxjs"; /** @deprecated Don't use static pipe; declare operators as generic arrow functions instead */ export function genericOperator( operator: OperatorFunction ): {} extends I & O ? (source: Observable) => Observable : never { return operator as any; }