mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
refactor(schema): simplify validation and OpenAPI generation (#2709)
This commit is contained in:
1 parent
4bc5593f9f
commit
de1fd95a99
510 files changed
+29494
-36131
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
import {User} from '@app/features/user/models/User';
|
||||
import type {UserPartial} from '@fluxer/schema/src/domains/user/UserResponseSchemas';
|
||||
import {assign, getInitialSnapshot, type SnapshotFrom, setup, transition} from 'xstate';
|
||||
import {assign, initialTransition, type SnapshotFrom, setup, transition} from 'xstate';
|
||||
|
||||
export type FetchStatus = 'idle' | 'pending' | 'success' | 'error';
|
||||
|
||||
@@ -336,7 +336,7 @@ export const reactionUsersStateMachine = setup({
|
||||
export type ReactionUsersMachineSnapshot = SnapshotFrom<typeof reactionUsersStateMachine>;
|
||||
|
||||
export function createReactionUsersSnapshot(requestSerial = 0): ReactionUsersMachineSnapshot {
|
||||
return getInitialSnapshot(reactionUsersStateMachine, {requestSerial});
|
||||
return initialTransition(reactionUsersStateMachine, {requestSerial})[0];
|
||||
}
|
||||
|
||||
export function transitionReactionUsersSnapshot(
|
||||
|
||||
Reference in new issue
Block a user