Last active
May 9, 2024 12:55
-
-
Save mweststrate/bcb834af0254709ae16398dbce51e93f to your computer and use it in GitHub Desktop.
circular-deps-4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -- app.js -- | |
import { AbstractNode } from './internal' | |
/* as is */ | |
// -- internal.js -- | |
export * from './AbstractNode' | |
export * from './Node' | |
export * from './Leaf' | |
// -- AbstractNode.js -- | |
import { Node, Leaf } from './internal' | |
export class AbstractNode { | |
/* as is */ | |
} | |
// -- Node.js -- | |
import { AbstractNode } from './internal' | |
export class Node extends AbstractNode { | |
/* as is */ | |
} | |
// -- Leaf.js -- | |
import { AbstractNode } from './internal' | |
export class Leaf extends AbstractNode { | |
/* as is */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How come l.12 doesn't result in a circular dependency?