EFFECT_GLOBALS

tcmts.core.effects.EFFECT_GLOBALS · #w7txu4lp · term · runs anywhere

Globals that reach outside, whatever's done with them.

import type { Effect } from "#codebase/tcmts/core/effects";

export const EFFECT_GLOBALS: Record<string, Effect> = {
  fetch: "network",
  WebSocket: "network",
  XMLHttpRequest: "network",
  EventSource: "network",
  navigator: "environment",
  location: "environment",
  document: "environment",
  window: "environment",
  localStorage: "environment",
  sessionStorage: "environment",
  indexedDB: "environment",
  Intl: "environment",
  performance: "clock",
  console: "output",
}

uses

used by