@productminds/article-events 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
package/index.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
export * from './src/events/ArticleEvent';
|
2
|
-
export * from './src/events/ExternalArticleEvent';
|
3
|
-
export * from './src/events/InternalArticleEvent';
|
1
|
+
export * as ArticleEvent from './src/events/ArticleEvent';
|
2
|
+
export * as ExternalArticleEvent from './src/events/ExternalArticleEvent';
|
3
|
+
export * as InternalArticleEvent from './src/events/InternalArticleEvent';
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Schema } from '@effect/schema';
|
2
2
|
import { ArticleSchema } from '../types/Article';
|
3
3
|
|
4
|
-
|
4
|
+
const ArticleEventSchema = Schema.Struct({
|
5
5
|
kind: Schema.Literal('ARTICLE_EVENT'),
|
6
6
|
payload: Schema.Struct({
|
7
7
|
article: ArticleSchema,
|
@@ -15,5 +15,5 @@ const helpers = makeHelpers(ArticleEventSchema);
|
|
15
15
|
|
16
16
|
export default {
|
17
17
|
Schema: ArticleEventSchema,
|
18
|
-
...
|
18
|
+
...helpers
|
19
19
|
};
|