mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
16 lines
316 B
TypeScript
16 lines
316 B
TypeScript
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);
|
|
}
|