Skip to content

Comments

feat: typescript testing, correcting typescript errors#542

Merged
Justintime50 merged 5 commits intomasterfrom
typescript_testing
Feb 20, 2026
Merged

feat: typescript testing, correcting typescript errors#542
Justintime50 merged 5 commits intomasterfrom
typescript_testing

Conversation

@Justintime50
Copy link
Member

@Justintime50 Justintime50 commented Feb 19, 2026

Description

  • Adds missing Typescript params for FedEx MFA
    • I realized that we don't actually test if the Typescript definitions in this project are valid, we now run the Typescript compiler (just typescript) to ensure syntax errors can't pass into prod (doing so exposed a couple small issues that needed to be fixed in the definitions)
  • Bumps dependencies to get Typescript happy with config added
  • Removes a couple of lingering references to the removed repl
  • Bumps version to release FedEx MFA

Testing

just typescript now runs on CI to catch future errors, fixed the ones it caught here.

Pull Request Type

Please select the option(s) that are relevant to this PR.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement (fixing a typo, updating readme, renaming a variable name, etc)


declare const EasyPostClient: typeof import('./EasyPost').default;
export = EasyPostClient;
export default EasyPostClient;
Copy link
Member Author

Choose a reason for hiding this comment

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

Reviewer Note

Typescript didn't like the mix of CJS and ESM syntax here. AI suggests changing it to this will keep it compatible with both but want to make sure.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yea I would expect it to be export default here

Copy link
Contributor

@ralexmatthews ralexmatthews left a comment

Choose a reason for hiding this comment

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

Yea looks good to me from what I can tell 👍


declare const EasyPostClient: typeof import('./EasyPost').default;
export = EasyPostClient;
export default EasyPostClient;
Copy link
Contributor

Choose a reason for hiding this comment

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

Yea I would expect it to be export default here

@Justintime50 Justintime50 marked this pull request as ready for review February 19, 2026 22:36
@Justintime50 Justintime50 requested review from a team as code owners February 19, 2026 22:36
@Justintime50 Justintime50 merged commit be96ca7 into master Feb 20, 2026
18 checks passed
@Justintime50 Justintime50 deleted the typescript_testing branch February 20, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants