Skip to content

Commit

Permalink
Typescript: Missing type for onError (#29)
Browse files Browse the repository at this point in the history
* add missing type for onError prop

* add missing type for onError prop
  • Loading branch information
benji24290 authored Jul 24, 2023
1 parent 4276af1 commit 7f6240f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Datatrans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface GlobalDatatransApi {
*/
export interface DatatransLightboxConfig {
closed?: () => void;
error?: () => void;
error?: (error: { message: string; detail: string }) => void;
form?: unknown;
loaded?: () => void;
opened?: () => void;
Expand Down
2 changes: 1 addition & 1 deletion src/Lightbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface LightboxProps {
onLoaded?: () => void
onOpened?: () => void
onCancelled?: () => void
onError?: () => void
onError?: (error: { message: string; detail: string }) => void
}

declare let window: Window & {
Expand Down

0 comments on commit 7f6240f

Please sign in to comment.