-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1411 from samchon/feat/frontend
- Loading branch information
Showing
16 changed files
with
2,099 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import fs from "fs"; | ||
|
||
const directory: string[] = fs.readdirSync(`${__dirname}/../generate/output`); | ||
for (const file of directory) { | ||
const content: string = fs.readFileSync( | ||
`${__dirname}/../generate/output/${file}`, | ||
"utf8", | ||
); | ||
if (content.includes("const $")) | ||
throw new Error(`$ is not allowed in Svelte5`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import typia, { tags } from "typia"; | ||
|
||
interface ICitizen { | ||
id: string & tags.Format<"uuid">; | ||
name: string & tags.Pattern<"^[A-Z][a-z]+$">; | ||
email: string & tags.Format<"email">; | ||
age: number & tags.Type<"uint32"> & tags.ExclusiveMaximum<100>; | ||
motto: string; | ||
birthdate: Date; | ||
died_at: null | Date; | ||
parent: ICitizen | null; | ||
children: ICitizen[]; | ||
} | ||
|
||
export const is = typia.createIs<ICitizen>(); | ||
export const assert = typia.createAssert<ICitizen>(); | ||
export const assertGuard = typia.createAssertGuard<ICitizen>(); | ||
export const validate = typia.createValidate<ICitizen>(); | ||
|
||
export const equals = typia.createEquals<ICitizen>(); | ||
export const assertEquals = typia.createAssertEquals<ICitizen>(); | ||
export const assertGuardEquals = typia.createAssertGuardEquals<ICitizen>(); | ||
export const validateEquals = typia.createValidateEquals<ICitizen>(); | ||
|
||
export const random = typia.createRandom<ICitizen>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"use strict"; | ||
|
||
'use server'; | ||
|
||
import typia, { tags } from "typia"; | ||
|
||
typia.createIs<string & tags.Format<"uuid">>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.