Détection de détection circulaire de détection
npm i -D madge
npx madge --circular --extensions ts ./src
florinrelea
npm i -D madge
npx madge --circular --extensions ts ./src
Use references
Create a definitions.d.ts file that will only contain the references to your classes/interfaces
/// <reference path="Parent.ts" />
/// <reference path="Child.ts" />
Visit: https://stackoverflow.com/questions/24444436/circular-type-references-in-typescript