@@ -15,7 +15,7 @@ import {
1515 fieldsFromRustFlat ,
1616 fieldsToRustFlat ,
1717} from './conversion-base.js' ;
18- import { Gate , OrInfinity , Wire } from './kimchi-types.js' ;
18+ import { Gate , OrInfinity , PolyComm , Wire } from './kimchi-types.js' ;
1919import { mapTuple } from './util.js' ;
2020
2121export {
@@ -109,13 +109,13 @@ function conversionCorePerField(
109109 return [ 0 , ...arr ] ;
110110 } ,
111111
112- polyCommToRust ( polyComm : any ) : WasmPolyComm {
112+ polyCommToRust ( polyComm : PolyComm ) : WasmPolyComm {
113113 let [ , camlElems ] = polyComm ;
114114 let rustShifted = undefined ;
115115 let rustUnshifted = self . pointsToRust ( camlElems ) ;
116116 return new PolyComm ( rustUnshifted , rustShifted ) ;
117117 } ,
118- polyCommFromRust ( polyComm : WasmPolyComm ) : any {
118+ polyCommFromRust ( polyComm : WasmPolyComm ) : PolyComm {
119119 console . log ( 'polyComm old' , polyComm ) ;
120120 let rustUnshifted = polyComm . unshifted ;
121121 console . log ( 'rustUnshifted' , rustUnshifted ) ;
@@ -125,10 +125,10 @@ function conversionCorePerField(
125125 return [ 0 , [ 0 , ...mlUnshifted ] ] ;
126126 } ,
127127
128- polyCommsToRust ( [ , ...comms ] : MlArray < any > ) : Uint32Array {
128+ polyCommsToRust ( [ , ...comms ] : MlArray < PolyComm > ) : Uint32Array {
129129 return mapToUint32Array ( comms , ( c ) => unwrap ( self . polyCommToRust ( c ) ) ) ;
130130 } ,
131- polyCommsFromRust ( rustComms : Uint32Array ) : MlArray < any > {
131+ polyCommsFromRust ( rustComms : Uint32Array ) : MlArray < PolyComm > {
132132 let comms = mapFromUintArray ( rustComms , ( ptr ) => self . polyCommFromRust ( wrap ( ptr , PolyComm ) ) ) ;
133133 return [ 0 , ...comms ] ;
134134 } ,
0 commit comments