Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new command npx typia generate #509

Closed
samchon opened this issue Feb 19, 2023 · 0 comments
Closed

Add new command npx typia generate #509

samchon opened this issue Feb 19, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@samchon
Copy link
Owner

samchon commented Feb 19, 2023

There're some special environments that do not using standard TypeScript compiler.

  • Next.js
  • Angular
  • Babel
  • Svelte

As they're are not using standard TypeScript compiler, using typia transformation (Ahead of Time compilation) is not possible.

Therefore, add a new command generating TS files that tranformation has been done, to support them.

npx typia generate --input src/templates --output src/functional

src/templates/is.ts

import typia from "typia";

export const is = typia.createIs<boolean>();

src/functional/is.ts

import typia from "typia";

export const is = (input: unknown): input is boolean => "boolean" === typeof input;
@samchon samchon added the enhancement New feature or request label Feb 19, 2023
@samchon samchon self-assigned this Feb 19, 2023
@samchon samchon added this to To do in v3.6 Update via automation Feb 19, 2023
samchon added a commit that referenced this issue Feb 19, 2023
samchon added a commit that referenced this issue Feb 21, 2023
samchon added a commit that referenced this issue Feb 25, 2023
samchon added a commit that referenced this issue Feb 25, 2023
samchon added a commit that referenced this issue Feb 25, 2023
v3.6 Update automation moved this from To do to Done Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

1 participant