I was trying to pass some additional props to the Success Component.
This prop is not used in the query but just used in the Success.
I tried extending the auto generated type to add the new property but
I am getting some TS errors.
Now I might be doing it incorrectly, as for one thing is that I am trying to extend an autogenerated type.
What is the correct way to add an additional prop and add it to the types so that I don’t get TS Errors.
Yeah I tried that, and it seems like the type generator doesn’t take the types from the type changes I added in the Cell and instead it takes it from the auto generated types.
For example here my new Type is variablesWithTitle, but if I go to .redwood/types/mirror/web/src/components/PriceChangeCell/index.d.ts.
I will see type CellInputs = CellProps<SuccessType, topPriceChanges, typeof Cell, topPriceChangesVariables>
there is no mention of variablesWithTitle in that file
Since the code generated by rw cli creates a return type like CellSuccessProps< topPriceChanges, topPriceChangesVariables>, I was thinking that the second parameter would be for the variables and I would be good if I just update the second parameter.