Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 1d78dbe

Browse files
committed
fix(utils): export constant clean up
1 parent 8accbe5 commit 1d78dbe

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

utils/constant/index.js

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1-
export { default as TYPE } from './type'
2-
export { default as EVENT } from './event'
3-
export { default as ERR } from './err'
1+
import TYPE from './type'
2+
import EVENT from './event'
3+
import ERR from './err'
4+
import { THREAD, COMMUNITY_SPEC_THREADS } from './thread'
45

5-
export { THREAD, COMMUNITY_SPEC_THREADS } from './thread'
6+
// export { default as TYPE } from './type'
7+
// export { default as EVENT } from './event'
8+
// export { default as ERR } from './err'
9+
10+
// export { THREAD, COMMUNITY_SPEC_THREADS } from './thread'
11+
12+
export default {
13+
TYPE,
14+
EVENT,
15+
ERR,
16+
THREAD,
17+
COMMUNITY_SPEC_THREADS,
18+
}

utils/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
// import SR71 from './async/sr71'
55
// import { asyncErr, asyncRes } from './graphql_helper'
66
// import { $solver } from './mobx_helper'
7-
import * as CONSTANT_CONFLICT from './constant'
87

98
// aka network staff
109
// export const asyncSuit = { SR71, asyncErr, asyncRes, $solver }
11-
export const CONSTANT = CONSTANT_CONFLICT
10+
export { default as CONSTANT } from './constant'
1211

1312
export {
1413
EVENT,

0 commit comments

Comments
 (0)