Skip to content

Commit

Permalink
Refactored inline types pt. 2
Browse files Browse the repository at this point in the history
  • Loading branch information
rpanic committed Dec 20, 2024
1 parent 464f170 commit 5f16af4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/lib/proof-system/zkprogram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,8 @@ function ZkProgram<Config extends ConfigBaseType>(
InferProvableOrUndefined<InferAuxiliaryOutputs<Config>[I]>
>;
} {
type Methods = {
[I in keyof Config['methods']]: Method<
InferProvableOrUndefined<Get<Config, 'publicInput'>>,
InferProvableOrVoid<Get<Config, 'publicOutput'>>,
Config['methods'][I]
>;
};
// derived types for convenience
type Methods = InferMethodSignatures<Config>;
type PrivateInputs = InferPrivateInput<Config>
type AuxiliaryOutputs = InferAuxiliaryOutputs<Config>;

Expand Down

0 comments on commit 5f16af4

Please sign in to comment.