Closed RemyMachado closed 2 years ago
I fixed the problem using import type
instead of import
import type { Context } from 'my/types
More info here: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export
I'm stuck in a loop!
I'm trying to define the
Context
type present in myDataSource
, but this one includes the differentDataSource
s.Context
-> dataSources ->DataSource[]
and for each DataSource:DataSource
->Context
the
context
:the
DataSource
:Have you already tackled this problem?
ESLint: Dependency cycle detected.(import/no-cycle)