Skip to content

Improve Exporting of All Schema Types #341

@huynguyengl99

Description

@huynguyengl99

Hi all (cc @astahmer),

There are some cases where the types are not being exported properly — some schema-defined types are missing from the final output. To address this, I’ve raised this issue along with a PR that improves how types are exported. With the change, all defined schemas will have corresponding exported types.

I’ve also added examples in the test suite. Without the fix, the following types wouldn’t be available, even though the schemas exist:

type LoginRequest = {
  email: string;
  password: string;
};
type PasswordChangeRequest = {
  newPassword1: string;
  newPassword2: string;
};
type PasswordResetConfirmRequest = {
  newPassword1: string;
  newPassword2: string;
  uid: string;
  token: string;
};

I hope this issue is clear and the proposed changes will help improve type coverage and developer experience. Looking forward to your feedback and review of the PR.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions