66 * found in the LICENSE file at https://angular.dev/license
77 */
88
9- /**
10- * @fileoverview
11- * A module to facilitate use of a Trusted Types policy internally within
12- * Angular Material. It lazily constructs the Trusted Types policy, providing
13- * helper utilities for promoting strings to Trusted Types. When Trusted Types
14- * are not available, strings are used as a fallback.
15- * @security All use of this module is security-sensitive and should go through
16- * security review.
17- */
9+ // A module to facilitate use of a Trusted Types policy internally within
10+ // Angular Material. It lazily constructs the Trusted Types policy, providing
11+ // helper utilities for promoting strings to Trusted Types. When Trusted Types
12+ // are not available, strings are used as a fallback.
13+ // All use of this module is security-sensitive and should go through security review.
1814
19- export declare interface TrustedHTML {
15+ export interface TrustedHTML {
2016 __brand__ : 'TrustedHTML' ;
2117}
2218
23- export declare interface TrustedTypePolicyFactory {
19+ interface TrustedTypePolicyFactory {
2420 createPolicy (
2521 policyName : string ,
2622 policyOptions : {
@@ -29,7 +25,7 @@ export declare interface TrustedTypePolicyFactory {
2925 ) : TrustedTypePolicy ;
3026}
3127
32- export declare interface TrustedTypePolicy {
28+ interface TrustedTypePolicy {
3329 createHTML ( input : string ) : TrustedHTML ;
3430}
3531
@@ -61,7 +57,8 @@ function getPolicy(): TrustedTypePolicy | null {
6157/**
6258 * Unsafely promote a string to a TrustedHTML, falling back to strings when
6359 * Trusted Types are not available.
64- * @security This is a security-sensitive function; any use of this function
60+ *
61+ * Important!!! This is a security-sensitive function; any use of this function
6562 * must go through security review. In particular, it must be assured that the
6663 * provided string will never cause an XSS vulnerability if used in a context
6764 * that will be interpreted as HTML by a browser, e.g. when assigning to
0 commit comments