Skip to content

Commit 18323f0

Browse files
committed
bump version
1 parent 6da8d70 commit 18323f0

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

lib/index.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ interface LightboxProps {
66
onLoaded?: () => void;
77
onOpened?: () => void;
88
onCancelled?: () => void;
9-
onError?: () => void;
9+
onError?: (error: {
10+
message: string;
11+
detail: string;
12+
}) => void;
1013
}
1114
declare const Lightbox: {
1215
(props: LightboxProps): null;
@@ -35,7 +38,10 @@ declare const Lightbox: {
3538
*/
3639
interface DatatransLightboxConfig {
3740
closed?: () => void;
38-
error?: () => void;
41+
error?: (error: {
42+
message: string;
43+
detail: string;
44+
}) => void;
3945
form?: unknown;
4046
loaded?: () => void;
4147
opened?: () => void;

lib/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-datatrans-light-box",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"description": "Datatrans Lightbox component for React apps",
55
"main": "lib/index.js",
66
"module": "lib/index.mjs",

0 commit comments

Comments
 (0)