You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the typescript-axios plugin does not generate correct typings, all the models have any type. The typescript-fetch plugin works as expected but is not immediately compatible with node without a "polyfill".
This get more important as we start to have more "custom" models. For example, the TaskProgress model is based off of rmf's TaskSummary message, with an additional field to indicate the current progress. These "custom" models are not reflected in rmf-models and must be imported from api-client. In the future, dashboard and react-component might not use rmf-models directly anymore, all model definitions will come from api-client.
We can either switch to typescript-fetch or attempt to fix typescript-axios upstream. Note that swagger codegen is a java project so that requires a different set of expertise.
The text was updated successfully, but these errors were encountered:
It seems the
typescript-axios
plugin does not generate correct typings, all the models haveany
type. Thetypescript-fetch
plugin works as expected but is not immediately compatible with node without a "polyfill".This get more important as we start to have more "custom" models. For example, the
TaskProgress
model is based off of rmf'sTaskSummary
message, with an additional field to indicate the current progress. These "custom" models are not reflected inrmf-models
and must be imported fromapi-client
. In the future,dashboard
andreact-component
might not usermf-models
directly anymore, all model definitions will come fromapi-client
.We can either switch to
typescript-fetch
or attempt to fixtypescript-axios
upstream. Note that swagger codegen is a java project so that requires a different set of expertise.The text was updated successfully, but these errors were encountered: