segmentio / evergreen

🌲 Evergreen React UI Framework by Segment
https://evergreen.segment.com
MIT License
12.38k stars 830 forks source link

Cleanup doc site warnings, add types, etc. #1615

Closed brandongregoryscott closed 1 year ago

brandongregoryscott commented 1 year ago

Overview

The doc site has had a huge number of warnings for unexpected any and non-null assertions for a while. Most of these were on the name property for the generic Item in our information architecture object, which is always present. I've updated the type and removed a bunch of assertions/casts. There are some other type changes in #1611 that should almost completely resolve the build warnings.

Nothing should functionally change here, just some code cleanup/logic consolidation.

Screenshots (if applicable)

Documentation

netlify[bot] commented 1 year ago

Deploy Preview for evergreen-storybook ready!

Name Link
Latest commit fc2e2bb994c4dca59b2e3c25885be8b9e23b4ce3
Latest deploy log https://app.netlify.com/sites/evergreen-storybook/deploys/63e173bba7bc100008a609f9
Deploy Preview https://deploy-preview-1615--evergreen-storybook.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.