Skip to content

chore: remove ignored docs-private tags #5353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/lib/core/rxjs/rx-chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import {StrictRxChain} from './rx-operators';
* This class is the concrete implementation, but the type used by the user when chaining
* is StrictRxChain. The strict chain enforces types on the operators to the same level as
* the prototype-added equivalents.
*
* @docs-private
*/
export class RxChain<T> {
private constructor(private _context: Observable<T>) { }
Expand Down
40 changes: 1 addition & 39 deletions src/lib/core/rxjs/rx-operators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import {Observable, ObservableInput} from 'rxjs/Observable';
import {PartialObserver} from 'rxjs/Observer';
import {Subscription} from 'rxjs/Subscription';
import {Scheduler, IScheduler} from 'rxjs/Scheduler';
import {IScheduler} from 'rxjs/Scheduler';
import {_finally as _finallyOperator} from 'rxjs/operator/finally';
import {_catch as _catchOperator} from 'rxjs/operator/catch';
import {_do as _doOperator} from 'rxjs/operator/do';
Expand All @@ -34,8 +34,6 @@ import {takeUntil as takeUntilOperator} from 'rxjs/operator/takeUntil';
*
* The downside to this approach is that operators must be imported in their type-coerced form
* rather than from the normal rxjs location.
*
* @docs-private
*/
export interface StrictRxChain<T> {
call<R>(operator: mapOperatorType<T, R>,
Expand Down Expand Up @@ -78,77 +76,41 @@ export interface StrictRxChain<T> {
result(): Observable<T>;
}

// @docs-private
export class FinallyBrand { private _; }
// @docs-private
export class CatchBrand { private _; }
// @docs-private
export class DoBrand { private _; }
// @docs-private
export class MapBrand { private _; }
// @docs-private
export class FilterBrand { private _; }
// @docs-private
export class ShareBrand { private _; }
// @docs-private
export class FirstBrand { private _; }
// @docs-private
export class SwitchMapBrand { private _; }
// @docs-private
export class StartWithBrand { private _; }
// @docs-private
export class DebounceTimeBrand { private _; }
// @docs-private
export class AuditTimeBrand { private _; }
// @docs-private
export class TakeUntilBrand { private _; }

// @docs-private
export type finallyOperatorType<T> = typeof _finallyOperator & FinallyBrand;
// @docs-private
export type catchOperatorType<T, R> = typeof _catchOperator & CatchBrand;
// @docs-private
export type doOperatorType<T> = typeof _doOperator & DoBrand;
// @docs-private
export type mapOperatorType<T, R> = typeof mapOperator & MapBrand;
// @docs-private
export type filterOperatorType<T> = typeof filterOperator & FilterBrand;
// @docs-private
export type shareOperatorType<T> = typeof shareOperator & ShareBrand;
// @docs-private
export type firstOperatorType<T> = typeof firstOperator & FirstBrand;
// @docs-private
export type switchMapOperatorType<T, R> = typeof switchMapOperator & SwitchMapBrand;
// @docs-private
export type startWithOperatorType<T> = typeof startWithOperator & StartWithBrand;
// @docs-private
export type debounceTimeOperatorType<T> = typeof debounceTimeOperator & DebounceTimeBrand;
// @docs-private
export type auditTimeOperatorType<T> = typeof auditTimeOperator & AuditTimeBrand;
// @docs-private
export type takeUntilOperatorType<T> = typeof takeUntilOperator & TakeUntilBrand;

// @docs-private
export const finallyOperator = _finallyOperator as typeof _finallyOperator & FinallyBrand;
// @docs-private
export const catchOperator = _catchOperator as typeof _catchOperator & CatchBrand;
// @docs-private
export const doOperator = _doOperator as typeof _doOperator & DoBrand;
// @docs-private
export const map = mapOperator as typeof mapOperator & MapBrand;
// @docs-private
export const filter = filterOperator as typeof filterOperator & FilterBrand;
// @docs-private
export const share = shareOperator as typeof shareOperator & ShareBrand;
// @docs-private
export const first = firstOperator as typeof firstOperator & FirstBrand;
// @docs-private
export const switchMap = switchMapOperator as typeof switchMapOperator & SwitchMapBrand;
// @docs-private
export const startWith = startWithOperator as typeof startWithOperator & StartWithBrand;
// @docs-private
export const debounceTime = debounceTimeOperator as typeof debounceTimeOperator & DebounceTimeBrand;
// @docs-private
export const auditTime = auditTimeOperator as typeof auditTimeOperator & AuditTimeBrand;
// @docs-private
export const takeUntil = takeUntilOperator as typeof takeUntilOperator & TakeUntilBrand;