Files
Agent-n8n/n8n-n8n-1.109.2/packages/workflow/src/global-state.ts

16 lines
316 B
TypeScript
Raw Normal View History

2025-09-08 04:48:28 +08:00
import { deepCopy } from './utils';
export interface GlobalState {
defaultTimezone: string;
}
let globalState: GlobalState = { defaultTimezone: 'America/New_York' };
export function setGlobalState(state: GlobalState) {
globalState = state;
}
export function getGlobalState() {
return deepCopy(globalState);
}