Typia supports npx typia generate
command.
Therefore, you can use typia
even in non-standard TypeScript compilers like swc or babel.
`npx typia generate \
--input src/templates \
--output src/generated
//--------
// src/templates/check.ts
//--------
import typia from "typia";
export const check = typia.createIs<string | null>();
//--------
// src/generated/check.ts
//--------
import typia from "typia";
export const check =
(input: unknown): input is string | null
=> "string" === typeof input || null === input;
What's Changed
- Close #525 - README for generation mode by @samchon in #526
- Close #509 -
npx typia generate
by @samchon in #510 - Fix #528 - make generator stable by @samchon in #529
Full Changelog: v3.5.8...v3.6.1