refactor: rewrite private export using the ɵ prefix

This commit is contained in:
Miško Hevery
2017-02-17 12:55:55 -08:00
committed by Igor Minar
parent bb0460b93b
commit 738d93caf7
111 changed files with 202 additions and 1070 deletions

View File

@ -6,12 +6,12 @@
* found in the LICENSE file at https://angular.io/license
*/
import {ɵisObservable as isObservable, ɵisPromise as isPromise} from '@angular/core';
import {fromPromise} from 'rxjs/observable/fromPromise';
import {composeAsyncValidators, composeValidators} from './directives/shared';
import {AsyncValidatorFn, ValidatorFn} from './directives/validators';
import {EventEmitter, Observable} from './facade/async';
import {isObservable, isPromise} from './private_import_core';

View File

@ -1,12 +0,0 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {__core_private__ as r} from '@angular/core';
export const isPromise: typeof r.isPromise = r.isPromise;
export const isObservable: typeof r.isObservable = r.isObservable;

View File

@ -6,14 +6,12 @@
* found in the LICENSE file at https://angular.io/license
*/
import {InjectionToken} from '@angular/core';
import {InjectionToken, ɵisPromise as isPromise} from '@angular/core';
import {toPromise} from 'rxjs/operator/toPromise';
import {AsyncValidatorFn, Validator, ValidatorFn} from './directives/validators';
import {StringMapWrapper} from './facade/collection';
import {isPresent} from './facade/lang';
import {AbstractControl, FormControl, FormGroup} from './model';
import {isPromise} from './private_import_core';
function isEmptyInputValue(value: any): boolean {
// we don't check for string here so it also works with arrays