Skip to content

Commit 1ef025f

Browse files
authored
[TS] Call registerType for procedure params (#3806)
# Description of Changes An important fix I put in #3704 that's not in master anymore because it was reverted. # Expected complexity level and risk 1
1 parent 3cead3d commit 1ef025f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

crates/bindings-typescript/src/lib/procedures.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ export function procedure<
4949
const paramsType: ProductType = {
5050
elements: Object.entries(params).map(([n, c]) => ({
5151
name: n,
52-
algebraicType:
53-
'typeBuilder' in c ? c.typeBuilder.algebraicType : c.algebraicType,
52+
algebraicType: registerTypesRecursively(
53+
'typeBuilder' in c ? c.typeBuilder : c
54+
).algebraicType,
5455
})),
5556
};
5657
const returnType = registerTypesRecursively(ret).algebraicType;

0 commit comments

Comments
 (0)