Skip to content

Commit

Permalink
Revert "fix(examples/sveltekit): remove typia function from svelte fi…
Browse files Browse the repository at this point in the history
…le temporally(#335)"

This reverts commit 28f4a83.
  • Loading branch information
ryoppippi committed Dec 3, 2024
1 parent de53d13 commit 28d5671
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
10 changes: 9 additions & 1 deletion examples/sveltekit/src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
<script lang="ts">
import {type IMember, validate} from "./validate";
import typia, { type tags } from "typia";
const { data } = $props();
interface IMember {
id: string & tags.Format<"uuid">;
email: string & tags.Format<"email">;
age: number & tags.ExclusiveMinimum<19> & tags.Maximum<100>;
}
const validate = typia.createValidate<IMember>();
let member = $state<IMember>({
id: crypto.randomUUID(),
email: "[email protected]",
Expand Down
10 changes: 0 additions & 10 deletions examples/sveltekit/src/routes/validate.ts

This file was deleted.

0 comments on commit 28d5671

Please sign in to comment.