From f48e704bf10c1ee4b2a7580ce12dca86340cd2f6 Mon Sep 17 00:00:00 2001 From: TheSparta Date: Thu, 2 Nov 2023 00:01:15 +0000 Subject: [PATCH] import DependencyContainer type directly from tsyringe - Redundant re-export of DependencyContainer from tsyringe, caused madge to think it was a circular dependency due to the file name also being tsyringe, deleted the file and importing directly from tsyringe instead. --- project/src/models/external/IPostAkiLoadMod.ts | 2 +- project/src/models/external/IPostAkiLoadModAsync.ts | 2 +- project/src/models/external/IPostDBLoadMod.ts | 2 +- project/src/models/external/IPostDBLoadModAsync.ts | 2 +- project/src/models/external/IPreAkiLoadMod.ts | 2 +- project/src/models/external/IPreAkiLoadModAsync.ts | 2 +- project/src/models/external/tsyringe.ts | 2 -- 7 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 project/src/models/external/tsyringe.ts diff --git a/project/src/models/external/IPostAkiLoadMod.ts b/project/src/models/external/IPostAkiLoadMod.ts index 0558350e..4748a1da 100644 --- a/project/src/models/external/IPostAkiLoadMod.ts +++ b/project/src/models/external/IPostAkiLoadMod.ts @@ -1,4 +1,4 @@ -import { DependencyContainer } from "@spt-aki/models/external/tsyringe"; +import type { DependencyContainer } from "tsyringe"; export interface IPostAkiLoadMod { diff --git a/project/src/models/external/IPostAkiLoadModAsync.ts b/project/src/models/external/IPostAkiLoadModAsync.ts index 2a6419ac..62c16073 100644 --- a/project/src/models/external/IPostAkiLoadModAsync.ts +++ b/project/src/models/external/IPostAkiLoadModAsync.ts @@ -1,4 +1,4 @@ -import { DependencyContainer } from "@spt-aki/models/external/tsyringe"; +import type { DependencyContainer } from "tsyringe"; export interface IPostAkiLoadModAsync { diff --git a/project/src/models/external/IPostDBLoadMod.ts b/project/src/models/external/IPostDBLoadMod.ts index a42c899c..3d5231ef 100644 --- a/project/src/models/external/IPostDBLoadMod.ts +++ b/project/src/models/external/IPostDBLoadMod.ts @@ -1,4 +1,4 @@ -import { DependencyContainer } from "@spt-aki/models/external/tsyringe"; +import type { DependencyContainer } from "tsyringe"; export interface IPostDBLoadMod { diff --git a/project/src/models/external/IPostDBLoadModAsync.ts b/project/src/models/external/IPostDBLoadModAsync.ts index afe261bc..ab336308 100644 --- a/project/src/models/external/IPostDBLoadModAsync.ts +++ b/project/src/models/external/IPostDBLoadModAsync.ts @@ -1,4 +1,4 @@ -import { DependencyContainer } from "@spt-aki/models/external/tsyringe"; +import type { DependencyContainer } from "tsyringe"; export interface IPostDBLoadModAsync { diff --git a/project/src/models/external/IPreAkiLoadMod.ts b/project/src/models/external/IPreAkiLoadMod.ts index f78b9273..af37de75 100644 --- a/project/src/models/external/IPreAkiLoadMod.ts +++ b/project/src/models/external/IPreAkiLoadMod.ts @@ -1,4 +1,4 @@ -import { DependencyContainer } from "@spt-aki/models/external/tsyringe"; +import type { DependencyContainer } from "tsyringe"; export interface IPreAkiLoadMod { diff --git a/project/src/models/external/IPreAkiLoadModAsync.ts b/project/src/models/external/IPreAkiLoadModAsync.ts index 9ae3b1e1..f3aa6e5b 100644 --- a/project/src/models/external/IPreAkiLoadModAsync.ts +++ b/project/src/models/external/IPreAkiLoadModAsync.ts @@ -1,4 +1,4 @@ -import { DependencyContainer } from "@spt-aki/models/external/tsyringe"; +import type { DependencyContainer } from "tsyringe"; export interface IPreAkiLoadModAsync { diff --git a/project/src/models/external/tsyringe.ts b/project/src/models/external/tsyringe.ts deleted file mode 100644 index 11cc2351..00000000 --- a/project/src/models/external/tsyringe.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { DependencyContainer } from "tsyringe"; -export type { DependencyContainer } ; \ No newline at end of file