mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-26 03:52:23 -08: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);
|
|
}
|