feat: improve specialization#215
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c32a84a537
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #215 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 60 60
Lines 2929 2965 +36
Branches 532 542 +10
=========================================
+ Hits 2929 2965 +36 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b2815aba49
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
b2815ab to
f70a139
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f70a13973d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
This adds
CSandJSCtorparameters to[SpecializeImport]attribute, allowing to splice C# code into the generated C# proxy and JS code into the constructor of the generated JS proxy opening more ways to customize the specialized type behavior.Also, when
Declstart withexportit will now replace the entire TypeScript declaration instead of splicing the content at the bottom of the default declaration.These features, along with several fixes allow advanced specialization scenarios, for example turning properties of specific type into events on the JS side:
bootsharp/src/js/test/cs/Test.Library/Specialization.cs
Lines 60 to 92 in c4feb06
Documentation: https://bootsharp.com/guide/specialization#injecting-code