actuel-inactuel/site/plugins/loop/frontend/src/store/form.svelte.ts

12 lines
199 B
TypeScript
Raw Normal View History

import type { FormData } from '../types';
export const formData: FormData = $state({
text: "",
parentId: null
});
export const reset = () => {
formData.text = ""
formData.parentId = null
}