github samchon/typia v3.6.1

latest releases: v6.11.3, v6.11.2, v6.11.1...
20 months ago

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

Don't miss a new typia release

NewReleases is sending notifications on new releases.