feat(security): expose the safe value types.

This allows users to properly type their `SafeHtml`, `SafeStyle`, etc values.

Fixes #8568.
This commit is contained in:
Martin Probst 2016-05-13 10:07:17 +02:00
parent 8b1b427195
commit 50c9bed630
3 changed files with 19 additions and 1 deletions

View File

@ -23,6 +23,11 @@ import {ListWrapper} from '../facade/src/collection';
//
// =================================================================================================
// =================================================================================================
// Note that this test only tests for *values* exported (e.g. classes, functions, variables), but
// not for *types* exported (interfaces, typedefs).
// See tools/public_api_guard/public_api_spec.ts for a type based test.
// =================================================================================================
var COMMON: string[] = [
'APP_BASE_HREF',

View File

@ -26,7 +26,15 @@ export {
export * from '../private_export';
export {DOCUMENT} from './dom/dom_tokens';
export {DomSanitizationService, SecurityContext} from './security/dom_sanitization_service';
export {
DomSanitizationService,
SafeHtml,
SafeScript,
SafeStyle,
SafeUrl,
SafeResourceUrl,
SecurityContext
} from './security/dom_sanitization_service';
export {
bootstrapStatic,

View File

@ -1224,6 +1224,11 @@ const BROWSER = [
'By.css(selector:string):Predicate<DebugElement>',
'By.directive(type:Type):Predicate<DebugElement>',
'DomSanitizationService',
'SafeHtml',
'SafeScript',
'SafeStyle',
'SafeUrl',
'SafeResourceUrl',
'SecurityContext',
'Title',
'Title.getTitle():string',