diff options
author | 2022-09-04 20:44:39 +0200 | |
---|---|---|
committer | 2022-09-06 01:05:23 +0200 | |
commit | 29919c02d86da10acf2b902fb9cab9998bb731a6 (patch) | |
tree | e4ac7dc9bc035327c720514363edee938248c14a /subprojects/frontend/src/xtext/xtextMessages.ts | |
parent | refactor(frontend): add eslint-plugin-mobx (diff) | |
download | refinery-29919c02d86da10acf2b902fb9cab9998bb731a6.tar.gz refinery-29919c02d86da10acf2b902fb9cab9998bb731a6.tar.zst refinery-29919c02d86da10acf2b902fb9cab9998bb731a6.zip |
feat(frontend): XState statecharts
Expressing logic in statecharts for complex stateful behaviours should
improve maintainability
We use @xstate/cli to statically analyze statcharts before typechecking
Diffstat (limited to 'subprojects/frontend/src/xtext/xtextMessages.ts')
-rw-r--r-- | subprojects/frontend/src/xtext/xtextMessages.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/subprojects/frontend/src/xtext/xtextMessages.ts b/subprojects/frontend/src/xtext/xtextMessages.ts index c4d0c676..ec7a2a31 100644 --- a/subprojects/frontend/src/xtext/xtextMessages.ts +++ b/subprojects/frontend/src/xtext/xtextMessages.ts | |||
@@ -40,3 +40,11 @@ export const XtextWebPushMessage = z.object({ | |||
40 | }); | 40 | }); |
41 | 41 | ||
42 | export type XtextWebPushMessage = z.infer<typeof XtextWebPushMessage>; | 42 | export type XtextWebPushMessage = z.infer<typeof XtextWebPushMessage>; |
43 | |||
44 | export const XtextResponse = z.union([ | ||
45 | XtextWebOkResponse, | ||
46 | XtextWebErrorResponse, | ||
47 | XtextWebPushMessage, | ||
48 | ]); | ||
49 | |||
50 | export type XtextResponse = z.infer<typeof XtextResponse>; | ||