Skip to content

TrustedTypesPolicy

TrustedTypesPolicy = object

Defined in: util/trusted_types.ts:4

The methods of a TrustedTypePolicy that the library calls.

Properties

createHTML

createHTML: (input: string) => unknown

Defined in: util/trusted_types.ts:6

Receives the attribution of a source, which is sanitized after it is parsed.

Parameters

Parameter Type
input string

Returns

unknown


createScriptURL

createScriptURL: (input: string) => unknown

Defined in: util/trusted_types.ts:8

Receives the URL the workers start from, which is a blob: URL when the worker is on another origin.

Parameters

Parameter Type
input string

Returns

unknown