From d1f21508799146a727229f8227dde054178f31b9 Mon Sep 17 00:00:00 2001 From: Albert Li Date: Tue, 12 Mar 2019 04:31:58 -0400 Subject: [PATCH] init index export --- src/index.ts | 8 ++++++++ src/publishSubscribe/index.ts | 19 ++++++++++++------- src/queue/index.ts | 16 ++++++++++++++++ src/request/index.ts | 19 ++++++++++++------- src/session/index.ts | 19 ++++++++++++------- 5 files changed, 60 insertions(+), 21 deletions(-) create mode 100644 src/queue/index.ts diff --git a/src/index.ts b/src/index.ts index 017800b..177f7bf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1,9 @@ +export { default as solace } from 'solclientjs/lib-browser/solclient'; +export { default as Session } from './session'; +export { default as PublishSubscribe } from './publishSubscribe'; +export { default as Queue } from './queue'; +export { default as Request } from './request'; +export { default as Event } from './event'; + + export { default as createSolaceMiddleware } from './middleware'; \ No newline at end of file diff --git a/src/publishSubscribe/index.ts b/src/publishSubscribe/index.ts index 1f9f235..25093ba 100644 --- a/src/publishSubscribe/index.ts +++ b/src/publishSubscribe/index.ts @@ -1,11 +1,16 @@ import * as actionTypes from './types' -import * as actions from './actions' -import * as asyncs from './async'; +import * as actionsCreators from './actions' +import * as asyncsRefs from './async'; + + +export const actions = { + ...actionTypes, + ...actionsCreators, +}; + +export const asyncs = asyncsRefs; export default { - actions:{ - ...actionTypes, - ...actions, - }, - asyncs + actions, + asyncs, } \ No newline at end of file diff --git a/src/queue/index.ts b/src/queue/index.ts new file mode 100644 index 0000000..25093ba --- /dev/null +++ b/src/queue/index.ts @@ -0,0 +1,16 @@ +import * as actionTypes from './types' +import * as actionsCreators from './actions' +import * as asyncsRefs from './async'; + + +export const actions = { + ...actionTypes, + ...actionsCreators, +}; + +export const asyncs = asyncsRefs; + +export default { + actions, + asyncs, +} \ No newline at end of file diff --git a/src/request/index.ts b/src/request/index.ts index 1f9f235..25093ba 100644 --- a/src/request/index.ts +++ b/src/request/index.ts @@ -1,11 +1,16 @@ import * as actionTypes from './types' -import * as actions from './actions' -import * as asyncs from './async'; +import * as actionsCreators from './actions' +import * as asyncsRefs from './async'; + + +export const actions = { + ...actionTypes, + ...actionsCreators, +}; + +export const asyncs = asyncsRefs; export default { - actions:{ - ...actionTypes, - ...actions, - }, - asyncs + actions, + asyncs, } \ No newline at end of file diff --git a/src/session/index.ts b/src/session/index.ts index 1f9f235..25093ba 100644 --- a/src/session/index.ts +++ b/src/session/index.ts @@ -1,11 +1,16 @@ import * as actionTypes from './types' -import * as actions from './actions' -import * as asyncs from './async'; +import * as actionsCreators from './actions' +import * as asyncsRefs from './async'; + + +export const actions = { + ...actionTypes, + ...actionsCreators, +}; + +export const asyncs = asyncsRefs; export default { - actions:{ - ...actionTypes, - ...actions, - }, - asyncs + actions, + asyncs, } \ No newline at end of file