From ea5757e7f77cfc2b592629760c7bf39f15fe4775 Mon Sep 17 00:00:00 2001 From: front-end-captain <18810940932@163.com> Date: Mon, 19 Jun 2023 16:23:11 +0800 Subject: [PATCH] fix: remove circular import --- 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';