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
This commit is contained in:
Alex Eagle 2017-01-19 12:06:28 -08:00 committed by Alex Rickabaugh
parent 2191f44025
commit b049217437
2 changed files with 6 additions and 0 deletions

View File

@ -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<any> {
// allow any Promise/A+ compliant thenable.
// It's up to the caller to ensure that obj.then conforms to the spec

View File

@ -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');
}