Skip to content

TSM-11: convert Group A models to TypeScript - #568

Open
Justin Hammond (Justintime50) wants to merge 13 commits into
ts-migrate/10-services-group-efrom
ts-migrate/11-models-group-a
Open

TSM-11: convert Group A models to TypeScript#568
Justin Hammond (Justintime50) wants to merge 13 commits into
ts-migrate/10-services-group-efrom
ts-migrate/11-models-group-a

Conversation

@Justintime50

@Justintime50 Justin Hammond (Justintime50) commented Aug 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Convert Group A models to TypeScript (Address, Parcel, CustomsInfo, CustomsItem, PostageLabel, Shipment).
  • Add typed model field declarations using a permissive optional+nullable policy for migration safety.
  • Include audit allowlist update needed to keep CI scan green.

Validation

  • npm run typescript
  • npm run build
  • Targeted Group A model/service tests

@Justintime50 Justin Hammond (Justintime50) changed the title TSM-11 convert models group A to TypeScript TSM-11: convert Group A models to TypeScript Aug 10, 2026
@Justintime50
Justin Hammond (Justintime50) marked this pull request as ready for review August 12, 2026 20:27
Comment thread src/models/address.ts
* @extends EasyPostObject
*/
export default class Address extends EasyPostObject {
declare street1?: string | null;

Choose a reason for hiding this comment

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

If ? denotes an optional value why do you need to type these as string | null instead of just string?

Choose a reason for hiding this comment

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

never mind I forgot about undefined

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.

2 participants