Skip to content

Conversation

@unadlib
Copy link
Owner

@unadlib unadlib commented Sep 19, 2025

The use case is to create reusable, type-safe utility functions that operate specifically on a Mutative draft object. Currently, we cannot properly type the draft argument in these external utility functions because the DraftedObject type is not exported.

@github-actions
Copy link

Coverage after merging fix-export-type into main will be

100.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
index.ts100%100%100%100%
src
   apply.ts100%100%100%100%
   constant.ts100%100%100%100%
   create.ts100%100%100%100%
   current.ts100%100%100%100%
   draft.ts100%100%100%100%
   draftify.ts100%100%100%100%
   index.ts100%100%100%100%
   interface.ts100%100%100%100%
   internal.ts100%100%100%100%
   makeCreator.ts100%100%100%100%
   map.ts100%100%100%100%
   original.ts100%100%100%100%
   patch.ts100%100%100%100%
   rawReturn.ts100%100%100%100%
   set.ts100%100%100%100%
   unsafe.ts100%100%100%100%
src/utils
   cast.ts100%100%100%100%
   copy.ts99.30%98.41%100%100%15
   deepFreeze.ts96.64%93.10%100%100%67–68, 75, 84
   draft.ts100%100%100%100%
   finalize.ts100%100%100%100%
   forEach.ts100%100%100%100%
   index.ts100%100%100%100%
   mark.ts100%100%100%100%
   marker.ts100%100%100%100%
   proto.ts100%100%100%100%

@unadlib unadlib changed the title fix(type): fix export DraftedObject fix(type): export DraftedObject Sep 19, 2025
@unadlib unadlib merged commit 5acb4fd into main Sep 19, 2025
3 checks passed
@unadlib unadlib deleted the fix-export-type branch September 19, 2025 17:14
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.

2 participants