mud icon indicating copy to clipboard operation
mud copied to clipboard

fix: preserve JsDoc on defineWorld output, bump @arktype/util

Open ssalbdivad opened this issue 9 months ago • 1 comments

This preserves JSDoc annotations on defineWorld output using the new withJsDoc utility from @arktype/util per @holic's request.

It will preserve additional keys on the instantiated type, but will not preserve optionality on keys present on the JS Doc source type. Examples can be found here in the associated unit tests.

I also bumped @arktype/util and removed redundant locally defined utils. The only other change was evaluate was renamed to show, so I made that change wherever evaluate was referenced as well.

ssalbdivad avatar May 13 '24 19:05 ssalbdivad