From 567d1c5bd270c3ec430707d2d32a93ebc08800e6 Mon Sep 17 00:00:00 2001 From: Max P Date: Fri, 16 Aug 2024 18:47:16 +0200 Subject: [PATCH] Refactor import paths for 'Identifier' type Unified the import paths of the 'Identifier' type across multiple files to ensure consistency. The 'Identifier' type is now imported from '../types/Identifier' instead of 'src/types/Identifier'. This change reduces ambiguity and aligns the import pattern throughout the codebase. --- src/classes/TSinjex.ts | 2 +- src/decorators/Inject.ts | 2 +- src/decorators/Register.ts | 2 +- src/decorators/RegisterInstance.ts | 2 +- src/functions/register.ts | 2 +- src/functions/resolve.ts | 2 +- src/interfaces/ITSinjex.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/classes/TSinjex.ts b/src/classes/TSinjex.ts index e172a0d..46f8ec5 100644 --- a/src/classes/TSinjex.ts +++ b/src/classes/TSinjex.ts @@ -1,4 +1,3 @@ -import { Identifier } from 'src/types/Identifier'; import type { Inject } from '../decorators/Inject'; import type { Register } from '../decorators/Register'; import type { RegisterInstance } from '../decorators/RegisterInstance'; @@ -8,6 +7,7 @@ import { ImplementsStatic } from '../helper/ImplementsStatic'; import { DependencyResolutionError } from '../interfaces/Exceptions'; import { IDependency } from '../interfaces/IDependency'; import { ITSinjex, ITSinjex_ } from '../interfaces/ITSinjex'; +import { Identifier } from '../types/Identifier'; /** * # TSinjex diff --git a/src/decorators/Inject.ts b/src/decorators/Inject.ts index 9e5239f..43f0ee5 100644 --- a/src/decorators/Inject.ts +++ b/src/decorators/Inject.ts @@ -1,5 +1,5 @@ -import { Identifier } from 'src/types/Identifier'; import { TSinjex } from '../classes/TSinjex'; +import { Identifier } from '../types/Identifier'; import { InitDelegate } from '../types/InitDelegate'; /** diff --git a/src/decorators/Register.ts b/src/decorators/Register.ts index aae2d41..fa65076 100644 --- a/src/decorators/Register.ts +++ b/src/decorators/Register.ts @@ -1,5 +1,5 @@ -import { Identifier } from 'src/types/Identifier'; import { TSinjex } from '../classes/TSinjex'; +import { Identifier } from '../types/Identifier'; /** * A decorator to register a class in the **TSinjex** DI (Dependency Injection) container. diff --git a/src/decorators/RegisterInstance.ts b/src/decorators/RegisterInstance.ts index b04cb56..d638f6e 100644 --- a/src/decorators/RegisterInstance.ts +++ b/src/decorators/RegisterInstance.ts @@ -1,5 +1,5 @@ -import { Identifier } from 'src/types/Identifier'; import { TSinjex } from '../classes/TSinjex'; +import { Identifier } from '../types/Identifier'; import { InitDelegate } from '../types/InitDelegate'; /** diff --git a/src/functions/register.ts b/src/functions/register.ts index 4e95615..4e0bb96 100644 --- a/src/functions/register.ts +++ b/src/functions/register.ts @@ -1,5 +1,5 @@ -import { Identifier } from 'src/types/Identifier'; import { TSinjex } from '../classes/TSinjex'; +import { Identifier } from '../types/Identifier'; /** * Register a dependency. diff --git a/src/functions/resolve.ts b/src/functions/resolve.ts index 015ffa1..2be0f1c 100644 --- a/src/functions/resolve.ts +++ b/src/functions/resolve.ts @@ -1,6 +1,6 @@ -import { Identifier } from 'src/types/Identifier'; import { TSinjex } from '../classes/TSinjex'; import { DependencyResolutionError } from '../interfaces/Exceptions'; +import { Identifier } from '../types/Identifier'; /** * Resolve a dependency. diff --git a/src/interfaces/ITSinjex.ts b/src/interfaces/ITSinjex.ts index b05c65d..b57dc5d 100644 --- a/src/interfaces/ITSinjex.ts +++ b/src/interfaces/ITSinjex.ts @@ -1,5 +1,5 @@ -import { Identifier } from 'src/types/Identifier'; import { DependencyResolutionError } from './Exceptions'; +import { Identifier } from '../types/Identifier'; /** * Static TSInjex Interface