diff --git a/types/react-native-mixpanel/index.d.ts b/types/react-native-mixpanel/index.d.ts index 510ac9991d..aba789ded6 100644 --- a/types/react-native-mixpanel/index.d.ts +++ b/types/react-native-mixpanel/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-native-mixpanel 0.1 // Project: https://github.com/davodesign84/react-native-mixpanel#readme -// Definitions by: My Self +// Definitions by: Andrew Makarov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/react-native-mixpanel/react-native-mixpanel-tests.ts b/types/react-native-mixpanel/react-native-mixpanel-tests.ts index 3f997e80f9..ca3ffffe41 100644 --- a/types/react-native-mixpanel/react-native-mixpanel-tests.ts +++ b/types/react-native-mixpanel/react-native-mixpanel-tests.ts @@ -1,4 +1,4 @@ -import Mixpanel = require('react-native-mixpanel'); +import * as Mixpanel from 'react-native-mixpanel'; Mixpanel.sharedInstanceWithToken('1234567890'); Mixpanel.track('Event name');