bigcommerce / b2b-buyer-portal

B2B Buyer Portal - BigCommerce B2B Edition
MIT License
25 stars 19 forks source link

refactor: add a PageProps interface to simplify the definition of the standard props for a page #59

Closed icatalina closed 2 months ago

icatalina commented 2 months ago

What/Why?

We are currently repeating the same definition on each page, and type checking the list of routes is a bit more complex than it needs to be.

This introduces a type for PageProps that all pages can conform to and can be used to type the RouteItem.

Rollout/Rollback

Revert

Testing

typescript