import { AsyncIterableX } from '../../asynciterable/asynciterablex' ; import { publish } from '../../asynciterable/operators/publish' ; export function publishProto < TSource > ( this ) ; export function publishProto < TSource , TResult > ( this , selector ? ) ; ignore export function publishProto < TSource , TResult > ( this , selector ? ) { return publish ( selector ) ( this ) ; } AsyncIterableX . prototype . publish = publishProto ; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX < T > { publish : typeof publishProto ; } }