Skip to content

Commit 9fb6013

Browse files
authored
feat(types): make the insertPosition optional in OpenFileDialogParams and OpenFileDialogResult (#576)
* feat(types): make the insertPosition optional in OpenFileDialogParams and OpenFileDialogResult * feat(types): add additional field in context command
1 parent 2231db0 commit 9fb6013

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

types/chat.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ export interface ContextCommand extends QuickActionCommand {
420420
route?: string[]
421421
label?: 'file' | 'folder' | 'code' | 'image'
422422
children?: ContextCommandGroup[]
423+
content?: Uint8Array
423424
}
424425

425426
export interface ContextCommandParams {
@@ -440,15 +441,15 @@ export interface CreatePromptParams {
440441
export interface OpenFileDialogParams {
441442
tabId: string
442443
fileType: 'image' | ''
443-
insertPosition: number
444+
insertPosition?: number
444445
}
445446

446447
export interface OpenFileDialogResult {
447448
tabId: string
448449
fileType: 'image' | ''
449450
filePaths: string[]
450451
errorMessage?: string
451-
insertPosition: number
452+
insertPosition?: number
452453
}
453454

454455
export interface DropFilesParams {

0 commit comments

Comments
 (0)