mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +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,7 +1,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {StickerAnimationOptions} from '@fluxer/constants/src/UserConstants';
|
||||
import {assign, getInitialSnapshot, type SnapshotFrom, setup, transition} from 'xstate';
|
||||
import {assign, initialTransition, type SnapshotFrom, setup, transition} from 'xstate';
|
||||
|
||||
export type StickerAnimation = number;
|
||||
export type AnimatedMediaKind = 'emoji' | 'gif' | 'sticker';
|
||||
@@ -388,7 +388,7 @@ export type MotionPreferencesSnapshot = SnapshotFrom<typeof motionPreferencesMac
|
||||
export type MotionPreferencesStateValue = 'full' | 'reduced';
|
||||
|
||||
export function createMotionPreferencesSnapshot(input: MotionPreferencesInput = {}): MotionPreferencesSnapshot {
|
||||
return getInitialSnapshot(motionPreferencesMachine, input);
|
||||
return initialTransition(motionPreferencesMachine, input)[0];
|
||||
}
|
||||
|
||||
export function transitionMotionPreferencesSnapshot(
|
||||
|
||||
Reference in new issue
Block a user