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

Close #940 - typia.http.formData<T>() function. #946

Merged
merged 2 commits into from
Feb 2, 2024
Merged

Conversation

samchon
Copy link
Owner

@samchon samchon commented Feb 2, 2024

import typia, { tags } from "typia";

interface ObjectHttpFormData {
  id: string & tags.Format<"uuid">;
  strings: string[];
  number: number;
  integers: Array<number & tags.Type<"int32">>;
  blob: Blob;
  blobs: Blob[];
  file: File;
  files: File[];
}
const data: ObjectHttpFormData = typia.http.assertFormData<ObjectHttpFormData>();

Converts FormData to an object typed instance, including Blob and File types.

Converts `FormData` to an object typed instance, including `Blob` and `File` types.
@samchon samchon added the enhancement New feature or request label Feb 2, 2024
@samchon samchon self-assigned this Feb 2, 2024
@samchon
Copy link
Owner Author

samchon commented Feb 2, 2024

Close #940

Copy link
Owner Author

@samchon samchon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Succeded to pass the test program, but needs node +18 version.

@samchon samchon merged commit 4ca375e into master Feb 2, 2024
2 of 3 checks passed
@samchon samchon deleted the features/formData branch February 2, 2024 14:27
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
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant