Skip to content

Commit 881a2bb

Browse files
DavidMina96HeshamMegid
authored andcommitted
[MOB-12027] Re-export NetworkData Type (#932)
Re-export `NetworkData` type
1 parent 2f0579b commit 881a2bb

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Unreleased
22

33
- Fixes a TS compilation error due to a broken entry point path.
4+
- Re-exports `NetworkData` type to be imported from `instabug-reactnative`.
45

56
## 11.9.0 (2023-02-20)
67

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import * as CrashReporting from './modules/CrashReporting';
99
import * as FeatureRequests from './modules/FeatureRequests';
1010
import * as Instabug from './modules/Instabug';
1111
import * as NetworkLogger from './modules/NetworkLogger';
12+
import type { NetworkData } from './modules/NetworkLogger';
1213
import * as Replies from './modules/Replies';
1314
import type { Survey } from './modules/Surveys';
1415
import * as Surveys from './modules/Surveys';
@@ -27,5 +28,6 @@ export {
2728
};
2829
export type { InstabugConfig };
2930
export type { Survey };
31+
export type { NetworkData };
3032

3133
export default Instabug;

src/modules/NetworkLogger.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import IBGEventEmitter from '../utils/IBGEventEmitter';
77
import InstabugConstants from '../utils/InstabugConstants';
88
import xhr, { NetworkData, ProgressCallback } from '../utils/XhrNetworkInterceptor';
99

10+
export type { NetworkData };
11+
1012
let _networkDataObfuscationHandlerSet = false;
1113
let _requestFilterExpression = 'false';
1214

0 commit comments

Comments
 (0)