From 758a6bd4c933df494dd8169602b79e98c1987c7a Mon Sep 17 00:00:00 2001 From: front-end-captain <18810940932@163.com> Date: Sat, 14 Oct 2023 19:29:59 -0500 Subject: [PATCH] fix: remove circular import (#1516) Co-authored-by: Podaru Dragos Co-authored-by: James Monger --- src/scope/scope.ts | 3 ++- src/utils/binding_utils.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/scope/scope.ts b/src/scope/scope.ts index 6676574fd..d16660548 100644 --- a/src/scope/scope.ts +++ b/src/scope/scope.ts @@ -1,4 +1,5 @@ -import { BindingScopeEnum, interfaces } from '../inversify'; +import { BindingScopeEnum } from '../constants/literal_types'; +import type { interfaces } from '../interfaces/interfaces' import { isPromise } from '../utils/async'; export const tryGetFromScope = ( diff --git a/src/utils/binding_utils.ts b/src/utils/binding_utils.ts index ebc81c8c8..3966880c6 100644 --- a/src/utils/binding_utils.ts +++ b/src/utils/binding_utils.ts @@ -1,4 +1,5 @@ -import { getServiceIdentifierAsString, interfaces } from '../inversify'; +import { getServiceIdentifierAsString } from '../utils/serialization'; +import type { interfaces } from '../interfaces/interfaces' import * as ERROR_MSGS from '../constants/error_msgs'; import { BindingTypeEnum } from '../constants/literal_types'; import { FactoryType } from './factory_type';