Files
Agent-n8n/n8n-n8n-1.109.2/packages/workflow/src/global-state.ts
2025-09-08 04:48:28 +08:00

16 lines
316 B
TypeScript
Executable File

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);
}