docs(core): document di and minor renames (#20855)

PR Close #20855
This commit is contained in:
Kara Erickson
2017-12-13 14:28:36 -08:00
committed by Igor Minar
parent 8fdb1e09c1
commit 5bc869cb24
2 changed files with 130 additions and 38 deletions

View File

@ -20,4 +20,14 @@ export function stringify(value: any): string {
if (typeof value == 'string') return value;
if (value == null) return '';
return '' + value;
}
}
/**
* Function that throws a "not implemented" error so it's clear certain
* behaviors/methods aren't yet ready.
*
* @returns Not implemented error
*/
export function notImplemented(): Error {
return new Error('NotImplemented');
}