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:
@ -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[] = [
|
var COMMON: string[] = [
|
||||||
'APP_BASE_HREF',
|
'APP_BASE_HREF',
|
||||||
|
@ -26,7 +26,15 @@ export {
|
|||||||
export * from '../private_export';
|
export * from '../private_export';
|
||||||
export {DOCUMENT} from './dom/dom_tokens';
|
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 {
|
export {
|
||||||
bootstrapStatic,
|
bootstrapStatic,
|
||||||
|
@ -1224,6 +1224,11 @@ const BROWSER = [
|
|||||||
'By.css(selector:string):Predicate<DebugElement>',
|
'By.css(selector:string):Predicate<DebugElement>',
|
||||||
'By.directive(type:Type):Predicate<DebugElement>',
|
'By.directive(type:Type):Predicate<DebugElement>',
|
||||||
'DomSanitizationService',
|
'DomSanitizationService',
|
||||||
|
'SafeHtml',
|
||||||
|
'SafeScript',
|
||||||
|
'SafeStyle',
|
||||||
|
'SafeUrl',
|
||||||
|
'SafeResourceUrl',
|
||||||
'SecurityContext',
|
'SecurityContext',
|
||||||
'Title',
|
'Title',
|
||||||
'Title.getTitle():string',
|
'Title.getTitle():string',
|
||||||
|
Reference in New Issue
Block a user