-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: change zod
schemas inputs/outputs to readonly
to match abitype
#194
fix: change zod
schemas inputs/outputs to readonly
to match abitype
#194
Conversation
🦋 Changeset detectedLatest commit: ec50e18 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Bug Fixes
Features
Documentation
Chore
ContributorsCommit-Lint commandsYou can trigger Commit-Lint actions by commenting on this PR:
|
zod
AbiEvent.inputs
to readonly to match AbiEvent
type
In order to run the |
zod
AbiEvent.inputs
to readonly to match AbiEvent
typezod
schemas inputs/outputs to readonly
to match abitype
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #194 +/- ##
=======================================
Coverage 99.90% 99.90%
=======================================
Files 21 21
Lines 2055 2055
Branches 325 325
=======================================
Hits 2053 2053
Misses 2 2
☔ View full report in Codecov by Sentry. |
@Raiden1411 Thanks a lot for clarifications, I was able to test the types as expected. I added a line in Moreover, I added all relevant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs final suggested changes
Description
This PR upgrades
zod
to v3.22+ to get access toZodReadonly
.This allow to update the
zod
schemas fromabitype/zod
so type fromabitype
.Added readonly to the following types:
AbiContructor.inputs
AbiError.inputs
AbiEvent.inputs
AbiFunction.inputs
/AbiFunction.outputs
Additional Information
Your ENS/address:
windyy.eth
PR-Codex overview
Detailed summary
AbiContructor.inputs
,AbiError.inputs
,AbiEvent.inputs
,AbiFunction.inputs
/AbiFunction.outputs
zod
package version to3.22.4
inpnpm-lock.yaml
zod
package version to^3 >=3.22.0
inpackage.json
CONTRIBUTING.md
to usepnpm@8.3.1
andtypescript@5.0.4
for installing or upgrading packagesCONTRIBUTING.md
to build the package before running thetest:typecheck
suitezod.ts
file to make thecomponents
,inputs
, andoutputs
properties readonly in various typeszod.test-d.ts
file to import additional types and test their assignability and extension