You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Creates a TrustedTypePolicy object that implements the rules passed as policyOptions.
60
+
*
61
+
* @param policyName A string containing the name of the policy
62
+
* @param policyOptions Object containing implementations of instance methods for TrustedTypesPolicy, see {@link https://developer.mozilla.org/en-US/docs/Web/API/TrustedTypePolicy#instance_methods
63
+
* | the TrustedTypePolicy reference documentation}.
64
+
*/
65
+
exportfunctioncreateTrustedTypesPolicy(
66
+
policyName: string,
67
+
policyOptions: Partial<TrustedTypePolicyOptions>
68
+
): Partial<TrustedTypePolicy>|undefined{
69
+
// Create a TrustedTypes policy that we can use for updating src
0 commit comments