-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZkPrograms QoL improvements #1933
Conversation
Ready for review |
note: the commonjs test failure just seems to be a runner problem |
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.
LGTM
Your first two bullets should probably be added to CHANGELOG.md CI is supposed to catch when PRs don't update the changelog, not sure why it didn't here. |
@@ -1112,7 +1126,7 @@ type Infer<T> = T extends Subclass<typeof ProofBase> | |||
|
|||
type TupleToInstances<T> = { | |||
[I in keyof T]: Infer<T[I]>; | |||
} & any[]; | |||
}; |
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.
This is really nice! <3
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.
That's a great and clean addition! I think this is good to go if we can add a quick changelog entry too!
updated the PR incl. changelog, just waiting for base PR to merge |
Small collection of QoL improvements around ZkProgram:
TupleToInstances<>
type so that it gets fully resolved by intellisense, i.e. we now see a normal method signature when hovering over ZkProgram methodsmaxProofsVerified()
and theProof
class directly on the ZkProgram