Refactor globalVariables key names in GlobalVariablesStore

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-21 14:02:37 -03:00
commit fbe346ccee

View file

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