Skip to content

Commit

Permalink
Docs: Fix options.callback description
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov committed Nov 8, 2023
1 parent e239c79 commit 87f3252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/survey-events-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ export interface UploadFilesEvent extends LoadFilesEvent {
}
export interface DownloadFileEvent extends LoadFilesEvent {
/**
* A callback function that you should call when a file is downloaded successfully or when deletion fails. Pass `"success"` or `"error"` as the first argument to indicate the operation status. As the second argument, you can pass the downloaded file's data as a Base64 string if file upload was successful or an error message if file upload failed.
* A callback function that you should call when a file is downloaded successfully or when deletion fails. Pass `"success"` or `"error"` as the first argument to indicate the operation status. As the second argument, you can pass the downloaded file's data as a Base64 string if file download was successful or an error message if file download failed.
*/
callback: (status: string, data?: any) => any;
/**
Expand All @@ -519,7 +519,7 @@ export interface DownloadFileEvent extends LoadFilesEvent {
}
export interface ClearFilesEvent extends LoadFilesEvent {
/**
* A callback function that you should call when files are deleted successfully or when deletion fails. Pass `"success"` or `"error"` as the first argument to indicate the operation status. As the second argument, you can pass deleted files' data (`options.value`) if file upload was successful or an error message if file upload failed.
* A callback function that you should call when files are deleted successfully or when deletion fails. Pass `"success"` or `"error"` as the first argument to indicate the operation status. As the second argument, you can pass deleted files' data (`options.value`) if file deletion was successful or an error message if file deletion failed.
*/
callback: (status: string, data?: any) => any;
/**
Expand Down

0 comments on commit 87f3252

Please sign in to comment.