Refactored GlobalVariablesStore to include a value property in globalVariables object

This commit is contained in:
anovazzi1 2024-04-30 13:34:44 -03:00
commit 17403d8172

View file

@ -1,10 +1,23 @@
export type GlobalVariablesStore = {
globalVariablesEntries: Array<string>;
globalVariables: { [name: string]: { id: string; type?: string, default_fields?: string[] } };
globalVariables: {
[name: string]: {
id: string;
type?: string;
default_fields?: string[];
value?: string;
};
};
setGlobalVariables: (variables: {
[name: string]: { id: string; type?: string, default_fields?: string[]};
[name: string]: { id: string; type?: string; default_fields?: string[],value?: string };
}) => void;
addGlobalVariable: (name: string, id: string, type?: string, default_fields?: string[]) => void;
addGlobalVariable: (
name: string,
id: string,
type?: string,
default_fields?: string[],
value?: string
) => void;
removeGlobalVariable: (name: string) => Promise<void>;
getVariableId: (name: string) => string | undefined;
unavaliableFields: Set<string>;