Open caisd1998 opened 4 years ago
Closing this as there is a viable solution. If this is still an issue, please reopen.
Hey! The event types @markgibaud-vtail mentions does not solve the typescript issue for this module. We need type definitions for the items in js/index.js. Without them typescript does not know what type MParticle is when we import it.
import MParticle from 'react-native-mparticle';
The error without the type definitions
Could not find a declaration file for module 'react-native-mparticle'. '/some/path/node_modules/react-native-mparticle/js/index.js' implicitly has an 'any' type.
@joelain Thanks for the heads up. We'll reopen this issue and see when we can get it into our backlog. Tracking internally as 77187.
Please add type support +1
+1
Tracking internally via https://go.mparticle.com/work/SQDSDKS-4220
Just starting to implement MParticle, and I'm really looking forward to this, particularly with option chains like so: MParticle.User.UserAttributeType.FirstName
, I've come to expect the intellisense that comes with TS.
We're using type script, can you add the support?