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 = {
|
||||
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>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue