import { OperatorFunction } from '../../interfaces'; import { IterableX } from '../../iterable/iterablex'; import { share as shareStatic } from '../share'; export function share(): OperatorFunction; export function share( selector?: (value: Iterable) => Iterable ): OperatorFunction; export function share( selector?: (value: Iterable) => Iterable ): OperatorFunction { return function shareOperatorFunction(source: Iterable): IterableX { return shareStatic(source, selector); }; }