From 36cd1f471e933e3aceb33d2f888af5951a4e02f8 Mon Sep 17 00:00:00 2001 From: Andrew Makarov Date: Fri, 17 Nov 2017 23:38:17 +0300 Subject: [PATCH] [react-native-mixpanel] refactoring --- types/react-native-mixpanel/index.d.ts | 2 +- types/react-native-mixpanel/react-native-mixpanel-tests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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');