@@ -59,10 +59,10 @@ function assertValidJustification(justification: string) {
59
59
*/
60
60
export function htmlSafeByReview (
61
61
html : string ,
62
- justification : string ,
62
+ options : { justification : string } ,
63
63
) : SafeHtml {
64
64
if ( process . env . NODE_ENV !== 'production' ) {
65
- assertValidJustification ( justification ) ;
65
+ assertValidJustification ( options . justification ) ;
66
66
}
67
67
return createHtmlInternal ( html ) ;
68
68
}
@@ -78,10 +78,10 @@ export function htmlSafeByReview(
78
78
*/
79
79
export function scriptSafeByReview (
80
80
script : string ,
81
- justification : string ,
81
+ options : { justification : string } ,
82
82
) : SafeScript {
83
83
if ( process . env . NODE_ENV !== 'production' ) {
84
- assertValidJustification ( justification ) ;
84
+ assertValidJustification ( options . justification ) ;
85
85
}
86
86
return createScriptInternal ( script ) ;
87
87
}
@@ -97,10 +97,10 @@ export function scriptSafeByReview(
97
97
*/
98
98
export function resourceUrlSafeByReview (
99
99
url : string ,
100
- justification : string ,
100
+ options : { justification : string } ,
101
101
) : TrustedResourceUrl {
102
102
if ( process . env . NODE_ENV !== 'production' ) {
103
- assertValidJustification ( justification ) ;
103
+ assertValidJustification ( options . justification ) ;
104
104
}
105
105
return createResourceUrlInternal ( url ) ;
106
106
}
@@ -117,10 +117,10 @@ export function resourceUrlSafeByReview(
117
117
*/
118
118
export function styleSheetSafeByReview (
119
119
stylesheet : string ,
120
- justification : string ,
120
+ options : { justification : string } ,
121
121
) : SafeStyleSheet {
122
122
if ( process . env . NODE_ENV !== 'production' ) {
123
- assertValidJustification ( justification ) ;
123
+ assertValidJustification ( options . justification ) ;
124
124
}
125
125
return createStyleSheetInternal ( stylesheet ) ;
126
126
}
0 commit comments