Skip to content

Commit 7fef87e

Browse files
authored
ref: Add geo location types (#11847)
Adds types for `geo` in the user object https://develop.sentry.dev/sdk/event-payloads/user/
1 parent 064c5ae commit 7fef87e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/types/src/user.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@ export interface User {
77
ip_address?: string;
88
email?: string;
99
username?: string;
10+
geo?: GeoLocation;
11+
}
12+
13+
export interface GeoLocation {
14+
country_code?: string;
15+
region?: string;
16+
city?: string;
1017
}

0 commit comments

Comments
 (0)