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:
parent
8b1b427195
commit
50c9bed630
|
@ -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',
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue