Getting error when creating a resi file using uncurried in v11:
The implementation /ventas/src/components/PvcWindow.res
does not match the interface src/components/pvcWindow-Ventas.cmi:
...
In module PageEdit:
Values do not match:
let make: props<option<string>, option<string>> => React.element (uncurried)
is not included in
let make: React.componentLike<
props<option<string>, option<string>>,
React.element,
> (curried)
/ventas/src/components/PvcWindow.resi:2:3-3:79:
Expected declaration
/ventas/src/components/PvcWindow.res:6094:7-10:
Actual declaration
rescript.json
{
"uncurried": false,
"name": "ventas",
"sources": [
{ "dir": "src/components", "subdirs": false },
{ "dir": "src/tests", "subdirs": false, "type": "dev" }
],
"package-specs": [
{
"module": "es6",
"in-source": true
}
],
"bs-dependencies": ["@rescript/react", "@ryyppy/rescript-promise"],
"bs-dev-dependencies": [],
"suffix": ".res.js",
"reanalyze": {
"analysis": ["dce", "exception"]
},
"jsx": { "version": 4, "mode": "automatic" },
"warnings": {
"number": "+A-42-48",
"error": "+A-3-44-102-103"
},
"namespace": true
}
PvcWindow.res:
@@uncurried
module PageEdit = {
@react.component
let make = (~itemId: option<string>, ~stepId: option<string>) => {
// ...
}
}
PvcWindow.resi:
module PageEdit: {
@react.component
let make: (~itemId: option<string>, ~stepId: option<string>) => React.element
}
Dependencies:
"@rescript/react": "^0.12.1",
"rescript": "11.0.1",
Any idea on how to fix the resi? It works fine without the resi.