global.d.ts 406 B

123456789101112
  1. /**
  2. * @license
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. import { SafeScript } from '../../internals/script_impl';
  6. /**
  7. * Evaluates a SafeScript value in the given scope using eval.
  8. *
  9. * Strongly consider avoiding this, as eval blocks CSP adoption and does not
  10. * benefit from compiler optimizations.
  11. */
  12. export declare function globalEval(win: Window | typeof globalThis, script: SafeScript): unknown;