Open hannojg opened 2 weeks ago
Ah right, there's some pre-parsing code that still validates this. We should just be able to remove that and everything will work.
I'll take a look at this soon, I think for now you're not blocked by just explicitly adding the type arguments right?
No I am not blocked, all good, just wanted to report this for DX
Let's turn this into a discussion; do we even want a default-behaviour for this?
Let's say the user doesn't explicitly declare the platforms, so just extends HybridObject
.
It will generate C++ code on both iOS and Android.
I was confused as the jsdoc states that the default generic parameter for
HybridObject
would be:https://github.com/mrousavy/nitro/blob/2e2e67fbeb96efb4fb8bfa779d6ed009d42675d4/packages/react-native-nitro-modules/src/HybridObject.ts#L24-L35
However, when trying to generate a spec specifying no generic parameter:
i get this error: