Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/global/docs/types/index.d"

Index

Functions

Functions

Export assignment getGlobal

  • getGlobal(codegen?: undefined | false | true): any
  • Returns the global object.

    Notes

    • Using code generation is the most reliable way to resolve the global object; however, doing so is likely to violate content security policies (CSPs) in, e.g., Chrome Apps and elsewhere.

    Parameters

    • Optional codegen: undefined | false | true

      boolean indicating whether to use code generation to resolve the global object

    Returns any

    global object

    Example

    var g = getGlobal();
    // returns {...}