I expect all path parameters to be defined in the generated interfaces.
Additional context
This is related to #334, which also found this case, but determined that it was a feature. In the cases of generating components, as described in the comment I tend to agree with this idea (though documentation would be nice). However, in the case of --skipReact, we won't have the <Delete /> component passing a function to fill in this last parameter. I believe it is more intuitive to include all parameters in the PathParams interface.
I suggest that this change only applies to --skipReact mode, so that it does not affect the primary use-case of this library. It would be a breaking change, as there may be others using --skipReact that are relying on this behaviour.
Describe the bug
The final path parameter is excluded from the generated
*PathParams
interfaceTo Reproduce Steps to reproduce the behavior:
.ts
file usingrestful-react --skipReact
An example reproduction can be found in this repository.
Expected behavior
I expect all path parameters to be defined in the generated interfaces.
Additional context
This is related to #334, which also found this case, but determined that it was a feature. In the cases of generating components, as described in the comment I tend to agree with this idea (though documentation would be nice). However, in the case of
--skipReact
, we won't have the<Delete />
component passing a function to fill in this last parameter. I believe it is more intuitive to include all parameters in the PathParams interface.I suggest that this change only applies to
--skipReact
mode, so that it does not affect the primary use-case of this library. It would be a breaking change, as there may be others using--skipReact
that are relying on this behaviour.