Skip to content

fix(type): export DraftedObject#137

Merged
unadlib merged 1 commit into
mainfrom
fix-export-type
Sep 19, 2025
Merged

fix(type): export DraftedObject#137
unadlib merged 1 commit into
mainfrom
fix-export-type

Conversation

@unadlib

@unadlib unadlib commented Sep 19, 2025

Copy link
Copy Markdown
Owner

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
Copy Markdown

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.

1 participant