Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

circular dependency typescript

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #circular #dependency #typescript
ADD COMMENT
Topic
Name
1+1 =