feat(yaml/unstable): allow to add custom types for parse and stringify#6841
feat(yaml/unstable): allow to add custom types for parse and stringify#6841kt3k merged 2 commits intodenoland:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6841 +/- ##
==========================================
- Coverage 94.18% 94.11% -0.07%
==========================================
Files 575 578 +3
Lines 42446 42604 +158
Branches 6742 6775 +33
==========================================
+ Hits 39977 40098 +121
- Misses 2419 2455 +36
- Partials 50 51 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
We have policy of accepting new feature as unstable first https://github.com/denoland/std/blob/main/.github/CONTRIBUTING.md#new-features-in-stable-packages-version--100 Can you copy |
|
@kt3k I moved everything to the unstable files (the |
| export type RepresentFn<D> = (data: D, style?: StyleVariant) => string; | ||
|
|
||
| /** | ||
| * A type definition for a YAML node. |
There was a problem hiding this comment.
Thank you for documenting this!
|
Why create a whole copy of each modules just to re-export stuff? instead of just make the module Let people access this schema module and they can even hack the original schemas... (Just needs a "At your own risk" notice). I feel this PR a bit overkill for initial goal ... |
This change introduce a new option to add custom types for
parseandstringifyfunctions of YAML, which can fix #5680.For example: