bpms_site/.svn/pristine/ea/eadda975ffaa4a55cfbdf19d1583ce1b41d4a99b.svn-base
2025-11-02 16:38:49 +03:30

12 lines
584 B
Plaintext

/// <reference types="trusted-types" />
/**
* Unsafely promote a string to a TrustedScriptURL, falling back to strings
* when Trusted Types are not available.
* This is a security-sensitive function; any use of this function
* must go through security review. In particular, it must be assured that the
* provided string will never cause an XSS vulnerability if used in a context
* that will cause a browser to load and execute a resource, e.g. when
* assigning to script.src.
*/
export declare function __unsafeCreateTrustedScriptURL(url: string): TrustedScriptURL | string;