mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +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
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {assign, getInitialSnapshot, type SnapshotFrom, setup, transition} from 'xstate';
|
||||
import {assign, initialTransition, type SnapshotFrom, setup, transition} from 'xstate';
|
||||
|
||||
export const LOCAL_TYPING_REMOTE_SEND_DELAY_MS = 1500;
|
||||
export const LOCAL_TYPING_REMOTE_REFRESH_MS = 8000;
|
||||
@@ -198,7 +198,7 @@ export const localTypingStateMachine = setup({
|
||||
});
|
||||
|
||||
export function createLocalTypingSnapshot(input: LocalTypingMachineInput = {}): LocalTypingSnapshot {
|
||||
return getInitialSnapshot(localTypingStateMachine, input);
|
||||
return initialTransition(localTypingStateMachine, input)[0];
|
||||
}
|
||||
|
||||
export function transitionLocalTypingSnapshot(
|
||||
|
||||
Reference in new issue
Block a user