@productminds/article-events 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
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
|
};
|