sentry-testkit 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +8 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -70,11 +70,15 @@ declare namespace sentryTestkit {
70
70
  getDsn: () => string
71
71
  }
72
72
 
73
- export interface TestkitResult {
73
+ type V6TransportClass = {
74
+ new(): Transport
75
+ }
76
+
77
+ type V7TransportFunction = () => Transport
78
+
79
+ export interface TestkitResult<Transport extends V6TransportClass | V7TransportFunction> {
74
80
  testkit: Testkit
75
- sentryTransport: {
76
- new (): Transport
77
- }
81
+ sentryTransport: Transport
78
82
  initNetworkInterceptor<T>(
79
83
  dsn: string,
80
84
  initCallback: (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sentry-testkit",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Sentry Testkit enables Sentry to work natively in your application while running tests. The report is not really sent but rather logged locally into memory. In this way, the logged reports can be fetched for your own verification or any other purpose in your local development environment.",
5
5
  "main": "dist/index.js",
6
6
  "types": "index.d.ts",