MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / getGlobal

Function getGlobal

packages/core/src/v3/utils/globals.ts:30–34  ·  view source on GitHub ↗
(
  type: Type
)

Source from the content-addressed store, hash-verified

28}
29
30export function getGlobal<Type extends keyof TriggerDotDevGlobalAPI>(
31 type: Type
32): TriggerDotDevGlobalAPI[Type] | undefined {
33 return _global[GLOBAL_TRIGGER_DOT_DEV_KEY]?.[type];
34}
35
36export function unregisterGlobal(type: keyof TriggerDotDevGlobalAPI) {
37 const api = _global[GLOBAL_TRIGGER_DOT_DEV_KEY];

Callers 6

#getTaskLoggerMethod · 0.90
#getConfigMethod · 0.90
#getClockMethod · 0.90
#getRuntimeManagerMethod · 0.90
#getTaskContextMethod · 0.90
#getCatalogMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…