mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
[react-native-mixpanel] refactoring
This commit is contained in:
2
types/react-native-mixpanel/index.d.ts
vendored
2
types/react-native-mixpanel/index.d.ts
vendored
@@ -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 <https://github.com/me>
|
||||
// Definitions by: Andrew Makarov <https://github.com/r3nya>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Mixpanel = require('react-native-mixpanel');
|
||||
import * as Mixpanel from 'react-native-mixpanel';
|
||||
|
||||
Mixpanel.sharedInstanceWithToken('1234567890');
|
||||
Mixpanel.track('Event name');
|
||||
|
||||
Reference in New Issue
Block a user