Skip to content

Commit 3e0bfd3

Browse files
refactor(types): replace Record with mapped types
1 parent 132825d commit 3e0bfd3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/resources/sessions/logs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface SessionLog {
3535

3636
export namespace SessionLog {
3737
export interface Request {
38-
params: Record<string, unknown>;
38+
params: { [key: string]: unknown };
3939

4040
rawBody: string;
4141

@@ -48,7 +48,7 @@ export namespace SessionLog {
4848
export interface Response {
4949
rawBody: string;
5050

51-
result: Record<string, unknown>;
51+
result: { [key: string]: unknown };
5252

5353
/**
5454
* milliseconds that have elapsed since the UNIX epoch

src/resources/sessions/recording.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface SessionRecording {
1717
* See
1818
* [rrweb documentation](https://github.com/rrweb-io/rrweb/blob/master/docs/recipes/dive-into-event.md).
1919
*/
20-
data: Record<string, unknown>;
20+
data: { [key: string]: unknown };
2121

2222
sessionId: string;
2323

src/resources/sessions/sessions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export interface Session {
116116
* Arbitrary user metadata to attach to the session. To learn more about user
117117
* metadata, see [User Metadata](/features/sessions#user-metadata).
118118
*/
119-
userMetadata?: Record<string, unknown>;
119+
userMetadata?: { [key: string]: unknown };
120120
}
121121

122122
export interface SessionLiveURLs {
@@ -214,7 +214,7 @@ export interface SessionCreateResponse {
214214
* Arbitrary user metadata to attach to the session. To learn more about user
215215
* metadata, see [User Metadata](/features/sessions#user-metadata).
216216
*/
217-
userMetadata?: Record<string, unknown>;
217+
userMetadata?: { [key: string]: unknown };
218218
}
219219

220220
export interface SessionRetrieveResponse {
@@ -286,7 +286,7 @@ export interface SessionRetrieveResponse {
286286
* Arbitrary user metadata to attach to the session. To learn more about user
287287
* metadata, see [User Metadata](/features/sessions#user-metadata).
288288
*/
289-
userMetadata?: Record<string, unknown>;
289+
userMetadata?: { [key: string]: unknown };
290290
}
291291

292292
export type SessionListResponse = Array<Session>;
@@ -335,7 +335,7 @@ export interface SessionCreateParams {
335335
* Arbitrary user metadata to attach to the session. To learn more about user
336336
* metadata, see [User Metadata](/features/sessions#user-metadata).
337337
*/
338-
userMetadata?: Record<string, unknown>;
338+
userMetadata?: { [key: string]: unknown };
339339
}
340340

341341
export namespace SessionCreateParams {

0 commit comments

Comments
 (0)