Skip to content

Commit 97ca5b5

Browse files
authored
fix: Use correct type for event's repos attribute (#1595)
1 parent 1ef73fb commit 97ca5b5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- [browser] fix: Fallback to Error object when rejection `reason` is not available
66
- [browser] feat: Support Bluebird's `detail.reason` for promise rejections
7+
- [types] fix: Use correct type for event's repos attribute
78

89
## 4.0.5
910

packages/core/src/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export interface Options {
8686
environment?: string;
8787

8888
/** Configures the repository spec for events */
89-
repos?: Repo[];
89+
repos?: Record<string, Repo>;
9090

9191
/** Sets the distribution for all events */
9292
dist?: string;

packages/types/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export interface SentryEvent {
172172
logger?: string;
173173
server_name?: string;
174174
release?: string;
175-
repos?: Repo[];
175+
repos?: Record<string, Repo>,
176176
dist?: string;
177177
environment?: string;
178178
sdk?: SdkInfo;

0 commit comments

Comments
 (0)