-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(core): hide dependencyRoots
from public API
#2668
Conversation
`IDependable` is now a marker interface, and signals that there is a `DependableTrait` implementation which can be retrieved which contains the actual implementation of `dependencyRoots` for this instance. Fixes #2348.
14544b2
to
ce4db50
Compare
@@ -596,6 +588,11 @@ export class Construct implements IConstruct { | |||
*/ | |||
constructor(scope: Construct, id: string) { | |||
this.node = new ConstructNode(this, scope, id); | |||
|
|||
const self = this; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put a wee comment explaining what this does
* explicitly. This is used to implement certain framework features that are | ||
* not intended to be used by Construct consumers, and so should be hidden | ||
* from accidental use. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example on how this is used
@@ -27,17 +24,61 @@ export interface IDependable { | |||
export class ConcreteDependable implements IDependable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nice. for some reason I thought it is just introduced now.
IDependable
is now a marker interface, and signals that there isa
DependableTrait
implementation which can be retrieved which containsthe actual implementation of
dependencyRoots
for this instance.Fixes #2348.
Pull Request Checklist
design
folderBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.