Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit a74f026

Browse files
committed
fix(exports): combining named and default expers with all helpers
1 parent 5b1b2d8 commit a74f026

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

src/helpers.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import {
2+
toast,
3+
hide as hideAllToast
4+
} from './lib/toast'
5+
6+
import handleApiError from './lib/handle-api-error'
7+
import uploadPictures from './lib/upload-pictures'
8+
9+
export {
10+
toast,
11+
hideAllToast,
12+
handleApiError,
13+
uploadPictures
14+
}

src/index.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
import {
2-
toast,
3-
hide as hideAllToast
4-
} from './lib/toast'
1+
import * as helpers from './helpers'
52

6-
import handleApiError from './lib/handle-api-error'
7-
import uploadPictures from './lib/upload-pictures'
3+
export default helpers
84

9-
export {
10-
toast,
11-
hideAllToast,
12-
handleApiError,
13-
uploadPictures
14-
}
5+
export * from './helpers'

0 commit comments

Comments
 (0)