Skip to content

v3.6.1

Compare
Choose a tag to compare
@samchon samchon released this 26 Feb 19:24
· 823 commits to master since this release
814444e

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

Full Changelog: v3.5.8...v3.6.1