Skip to content

Commit b50e9f1

Browse files
refactor(types): replace Record with mapped types
1 parent 23d5fa7 commit b50e9f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/resources/datastores/documents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export interface DocumentMetadata {
181181
*/
182182
status: 'pending' | 'processing' | 'retrying' | 'completed' | 'failed' | 'cancelled';
183183

184-
custom_metadata?: Record<string, boolean | number | string>;
184+
custom_metadata?: { [key: string]: boolean | number | string };
185185

186186
/**
187187
* Timestamp of when the document was modified in ISO format.
@@ -282,7 +282,7 @@ export interface DocumentIngestParams {
282282
}
283283

284284
export interface DocumentSetMetadataParams {
285-
custom_metadata?: Record<string, boolean | number | string>;
285+
custom_metadata?: { [key: string]: boolean | number | string };
286286
}
287287

288288
Documents.DocumentMetadataDocumentsPage = DocumentMetadataDocumentsPage;

src/resources/users.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface InviteUsersResponse {
5959
* Details of the errors occurred while inviting users, where keys are the emails
6060
* and values are the error messages
6161
*/
62-
error_details: Record<string, string>;
62+
error_details: { [key: string]: string };
6363

6464
/**
6565
* List of emails of the invited users

0 commit comments

Comments
 (0)