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

Fix #1018: add FormDataInput<T> type for React Native environment. #1033

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

samchon
Copy link
Owner

@samchon samchon commented Sep 17, 2024

In the React Native, it does not support the File class.

Instead, it can compose the FormData class instance by appending below primitive object type. The primitive type can replace the File class instance in the React Native.

In such reason, added FormDataInput<T> type which casts File typed property value as File | IFileProps union type, and changed SDK generator to utilize the type for the multipart/form-data request body type.

In the React Native, it does not support the `File` class.

Instead, it can compose the `FormData` class instance by appending below primitive object type. The primitive type can replace the `File` class instance in the React Native.

In such reason, added `FormDataInput<T>` type which casts `File` typed property value as `File | IFileProps` union type, and changed SDK generator to utilize the type for the `multipart/form-data` request body type.
@samchon samchon added bug Something isn't working enhancement New feature or request labels Sep 17, 2024
@samchon samchon self-assigned this Sep 17, 2024
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.

OK, no problem.

@samchon samchon merged commit d519b25 into master Sep 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant