Skip to content

Conversation

@Bashamega
Copy link
Contributor

related #2053

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2025

Thanks for the PR!

This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged.

Copy link
Contributor

@saschanaz saschanaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The direction looks good with some changes

@@ -0,0 +1 @@
interface-mixin ChildNode extends="Node"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(skip quote)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I don't think it's worth having a separate file for a single line change, but then I'm not sure what would be the right name. Maybe misc.kdl is fine and we can put random simple changes here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think extensions is a good name, because there are a bunch of things that we extend

Copy link
Contributor

@saschanaz saschanaz Aug 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And please cover ParentNode too, and some comment like:

// ChildNode and ParentNode are actually defined as mixins, but because of their names they have historically been used as a sub-interface of Node.

... with some line wrapping.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think extensions is a good name, because there are a bunch of things that we extend

Actually I change my mind here, covering ChildNode/ParentNode with some context is worth a separate file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@saschanaz saschanaz Aug 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now child-parent-node.kdl or such? With that LGTM.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done @saschanaz

Comment on lines 95 to 99
const result: any = {
name,
events: { event },
properties: { property },
} as DeepPartial<Interface>;
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const result: any = {
name,
events: { event },
properties: { property },
} as DeepPartial<Interface>;
};
const result = {
name,
events: { event },
properties: { property },
} as DeepPartial<Interface>;

It's not clear to me why const result: DeepPartial<Interface> doesn't work (the error is confusingly complex), but this should be ok.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@saschanaz
Copy link
Contributor

LGTM

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2025

There was an issue merging, maybe try again saschanaz. Details

@saschanaz
Copy link
Contributor

LGTM

@github-actions github-actions bot merged commit e4c6284 into microsoft:main Aug 2, 2025
6 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2025

Merging because @saschanaz is a code-owner of all the changes - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants