We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4276af1 commit 7f6240fCopy full SHA for 7f6240f
2 files changed
src/Datatrans.ts
@@ -22,7 +22,7 @@ export interface GlobalDatatransApi {
22
*/
23
export interface DatatransLightboxConfig {
24
closed?: () => void;
25
- error?: () => void;
+ error?: (error: { message: string; detail: string }) => void;
26
form?: unknown;
27
loaded?: () => void;
28
opened?: () => void;
src/Lightbox.tsx
@@ -12,7 +12,7 @@ export interface LightboxProps {
12
onLoaded?: () => void
13
onOpened?: () => void
14
onCancelled?: () => void
15
- onError?: () => void
+ onError?: (error: { message: string; detail: string }) => void
16
}
17
18
declare let window: Window & {
0 commit comments