Skip to content

Commit c5af950

Browse files
committed
don't ask me why this helps but seems worth it
1 parent ec97e0c commit c5af950

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/proof-system/zkprogram.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,10 @@ type InferMethodType<Config extends ConfigBaseType> = {
257257
* @param config The configuration of the program, describing the type of the public input and public output, as well as defining the methods which can be executed provably.
258258
* @returns an object that can be used to compile, prove, and verify the program.
259259
*/
260-
function ZkProgram<Config extends ConfigBaseType>(
260+
function ZkProgram<
261+
Config extends ConfigBaseType,
262+
_ extends unknown = unknown // weird hack that makes methods infer correctly when their inputs are not annotated
263+
>(
261264
config: Config & {
262265
name: string;
263266
methods: {

0 commit comments

Comments
 (0)