Remove usage of module.exports (#84)
[poolifier.git] / src / index.ts
index db6960b86af815b03e43460a3cfef9dfc591a3f8..1d7e0b1fcfc5be98992f2cc5113a00b84ed6db12 100644 (file)
@@ -1,5 +1,5 @@
-import DynamicThreadPool from './dynamic'
-import FixedThreadPool from './fixed'
+import { DynamicThreadPool } from './dynamic'
+import { FixedThreadPool } from './fixed'
 import { ThreadWorker } from './workers'
 
 export {
@@ -10,5 +10,3 @@ export {
 export { DynamicThreadPoolOptions } from './dynamic'
 export { ThreadWorkerOptions } from './workers'
 export { FixedThreadPool, DynamicThreadPool, ThreadWorker }
-
-module.exports = { FixedThreadPool, DynamicThreadPool, ThreadWorker }