trusted_types library Null safety

Trusted Types

https://w3c.github.io/webappsec-trusted-types/dist/spec/

Classes

TrustedHTML
The interface of the Trusted Types API represents a string that a developer can insert into an injection sink that will render it as HTML. These objects are created via TrustedTypePolicy.createHTML() and therefore have no constructor. [...]
TrustedScript
The interface of the Trusted Types API represents a string with an uncompiled script body that a developer can insert into an injection sink that might execute the script. These objects are created via TrustedTypePolicy.createScript() and therefore have no constructor. [...]
TrustedScriptURL
The interface of the Trusted Types API represents a string that a developer can insert into an injection sink that will parse it as a URL of an external script. These objects are created via TrustedTypePolicy.createScriptURL() and therefore have no constructor. [...]
TrustedTypePolicy
The interface of the Trusted Types API defines a group of functions which create TrustedType objects. [...]
TrustedTypePolicyFactory
The interface of the Trusted Types API creates policies and allows the verification of Trusted Type objects against created policies.
TrustedTypePolicyOptions