From b049217437759d404610d3ee30f0b2bd4ecc54ba Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Thu, 19 Jan 2017 12:06:28 -0800 Subject: [PATCH] chore(docs): add missing comments (#14003) This is a load-bearing change to avoid duplicate licenses in closure-compiled bundles. See https://github.com/angular/tsickle/issues/332 --- modules/@angular/core/src/util/lang.ts | 3 +++ modules/@angular/facade/src/errors.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/modules/@angular/core/src/util/lang.ts b/modules/@angular/core/src/util/lang.ts index 314473971c..6cf4316a83 100644 --- a/modules/@angular/core/src/util/lang.ts +++ b/modules/@angular/core/src/util/lang.ts @@ -6,6 +6,9 @@ * found in the LICENSE file at https://angular.io/license */ +/** + * Determine if the argument is shaped like a Promise + */ export function isPromise(obj: any): obj is Promise { // allow any Promise/A+ compliant thenable. // It's up to the caller to ensure that obj.then conforms to the spec diff --git a/modules/@angular/facade/src/errors.ts b/modules/@angular/facade/src/errors.ts index 71aa795b43..0fafc80431 100644 --- a/modules/@angular/facade/src/errors.ts +++ b/modules/@angular/facade/src/errors.ts @@ -6,6 +6,9 @@ * found in the LICENSE file at https://angular.io/license */ +/** + * Convenience to throw an Error with 'unimplemented' as the message. + */ export function unimplemented(): any { throw new Error('unimplemented'); }