fix: Type problems regarding global variable

This commit is contained in:
Faruk AYDIN
2022-10-06 00:49:24 +03:00
parent 8308265a62
commit 63ffd1f720
7 changed files with 21 additions and 24 deletions

View File

@@ -1,17 +1,13 @@
import createHttpClient from '../http-client';
import Connection from '../../models/connection';
import Flow from '../../models/flow';
import {
IJSONObject,
IApp,
IGlobalVariableForConnection,
} from '@automatisch/types';
import createHttpClient from './http-client';
import Connection from '../models/connection';
import Flow from '../models/flow';
import { IJSONObject, IApp, IGlobalVariable } from '@automatisch/types';
const prepareGlobalVariableForConnection = (
const globalVariable = (
connection: Connection,
appData: IApp,
flow?: Flow
): IGlobalVariableForConnection => {
): IGlobalVariable => {
return {
auth: {
set: async (args: IJSONObject) => {
@@ -32,4 +28,4 @@ const prepareGlobalVariableForConnection = (
};
};
export default prepareGlobalVariableForConnection;
export default globalVariable;