Git Product home page Git Product logo

Comments (8)

joelain avatar joelain commented on July 22, 2024 2

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.

from react-native-mparticle.

alexs-mparticle avatar alexs-mparticle commented on July 22, 2024 2

@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.

from react-native-mparticle.

JulianKingman avatar JulianKingman commented on July 22, 2024 1

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.

from react-native-mparticle.

markgibaud-vtail avatar markgibaud-vtail commented on July 22, 2024

See https://github.com/mParticle/js-models/tree/master/packages/events 👍

from react-native-mparticle.

alexs-mparticle avatar alexs-mparticle commented on July 22, 2024

Closing this as there is a viable solution. If this is still an issue, please reopen.

from react-native-mparticle.

fparhat-rbi avatar fparhat-rbi commented on July 22, 2024

Please add type support +1

from react-native-mparticle.

BuddhaBing avatar BuddhaBing commented on July 22, 2024

+1

from react-native-mparticle.

einsteinx2 avatar einsteinx2 commented on July 22, 2024

Tracking internally via https://go.mparticle.com/work/SQDSDKS-4220

from react-native-mparticle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.