Skip to content

Commit 5f16af4

Browse files
committed
Refactored inline types pt. 2
1 parent 464f170 commit 5f16af4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/lib/proof-system/zkprogram.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,8 @@ function ZkProgram<Config extends ConfigBaseType>(
268268
InferProvableOrUndefined<InferAuxiliaryOutputs<Config>[I]>
269269
>;
270270
} {
271-
type Methods = {
272-
[I in keyof Config['methods']]: Method<
273-
InferProvableOrUndefined<Get<Config, 'publicInput'>>,
274-
InferProvableOrVoid<Get<Config, 'publicOutput'>>,
275-
Config['methods'][I]
276-
>;
277-
};
278271
// derived types for convenience
272+
type Methods = InferMethodSignatures<Config>;
279273
type PrivateInputs = InferPrivateInput<Config>
280274
type AuxiliaryOutputs = InferAuxiliaryOutputs<Config>;
281275

0 commit comments

Comments
 (0)