mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -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);
|
||
|
}
|