Refactored GlobalVariablesStore to include a value property in globalVariables object
This commit is contained in:
parent
de1d5ddf00
commit
17403d8172
1 changed files with 16 additions and 3 deletions
|
|
@ -1,10 +1,23 @@
|
||||||
export type GlobalVariablesStore = {
|
export type GlobalVariablesStore = {
|
||||||
globalVariablesEntries: Array<string>;
|
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: {
|
setGlobalVariables: (variables: {
|
||||||
[name: string]: { id: string; type?: string, default_fields?: string[]};
|
[name: string]: { id: string; type?: string; default_fields?: string[],value?: string };
|
||||||
}) => void;
|
}) => 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>;
|
removeGlobalVariable: (name: string) => Promise<void>;
|
||||||
getVariableId: (name: string) => string | undefined;
|
getVariableId: (name: string) => string | undefined;
|
||||||
unavaliableFields: Set<string>;
|
unavaliableFields: Set<string>;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue