Skip to content

Commit

Permalink
#256 - fix variable maps in v1-1-0.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulKa committed Feb 17, 2025
1 parent 5648732 commit 468b2c3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/persistence/service/info-files/v1-1-0.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { RequestBody } from 'shim/objects/request';
import { VariableObject } from 'shim/objects/variables';
import { VariableMap } from 'shim/objects/variables';
import { EnvironmentMap } from 'shim/objects/environment';
import { RequestMethod } from 'shim/objects/request-method';
import { TrufosHeader } from 'shim/objects/headers';
import { EnvironmentObject } from 'shim/objects/environment';
import { SemVer } from 'main/util/semver';
import { InfoFile as OldInfoFile, VERSION as OLD_VERSION } from './v1-0-1';
import { AbstractInfoFileMigrator } from './migrator';
Expand All @@ -25,11 +25,9 @@ export type RequestInfoFile = InfoFileBase & {

export type FolderInfoFile = InfoFileBase;

type VariableMap = Record<VariableObject['key'], Omit<VariableObject, 'key'>>;

export type CollectionInfoFile = InfoFileBase & {
variables: VariableMap;
environments: Record<EnvironmentObject['key'], { variables: VariableMap }>;
environments: EnvironmentMap;
};

export type InfoFile = RequestInfoFile | FolderInfoFile | CollectionInfoFile;
Expand Down

0 comments on commit 468b2c3

Please sign in to comment.