import { IterableX } from '../../iterable/iterablex' ; import { publish } from '../../iterable/operators/publish' ; export function publishProto < T > ( this ) ; export function publishProto < T , R > ( this , selector ? ) ; ignore export function publishProto < T , R > ( this , selector ? ) { return publish ( selector ) ( this ) ; } IterableX . prototype . publish = publishProto ; declare module '../../iterable/iterablex' { interface IterableX < T > { publish : typeof publishProto ; } }