• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Khan / perseus / 5956285679
69%

Build:
DEFAULT BRANCH: main
Ran 23 Aug 2023 08:47PM UTC
Jobs 2
Files 530
Run time 13s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Aug 2023 08:44PM UTC coverage: 69.318% (-0.01%) from 69.329%
5956285679

push

github

web-flow
Convert all JSX.LibraryManagedAttributes to use PropsFor<> (#691)

## Summary:

Previously in Flow we had a simple type for exatracting prop types of a component while reatining their optionality: `React.ElementConfig<typeof MyComponent>`. In TypeScript the equivalent is alot uglier:

```javascript 
JSX.LibraryManagedAttributes<
   typeof MyComponent,
   React.ComponentProps<typeof MyComponent>
>
```

Wonder Stuff Core recently added a helper named `PropsFor<>` that works like Flow's `ElmeentConfig<T>` and so this PR adapts to use that new type.

One related fix I made was to remove the `context` object from the `Renderer`'s constructor. That's a deprecated pattern in React and I couldn't find any usages that do that. 

Issue: "none"

## Test plan:

`yarn typecheck`
`yarn test` (just to be safe)

Author: jeremywiebe

Reviewers: somewhatabstract, #perseus

Required Reviewers:

Approved By: somewhatabstract

Checks: ✅ finish_coverage, ✅ gerald, ⏭  Publish npm snapshot, ✅ Extract i18n strings (ubuntu-latest, 16.x), ✅ Check builds for changes in size (ubuntu-latest, 16.x), ✅ Check for .changeset file (ubuntu-latest, 16.x), ✅ Jest Coverage (ubuntu-latest, 16.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 16.x), ✅ Cypress Coverage (ubuntu-latest, 16.x), ✅ gerald

Pull Request URL: https://github.com/Khan/perseus/pull/691

7627 of 16592 branches covered (45.97%)

Branch coverage included in aggregate %.

25 of 25 new or added lines in 9 files covered. (100.0%)

71407 of 97424 relevant lines covered (73.3%)

710.18 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 cypress 5956285679.1 23 Aug 2023 08:47PM UTC 0
26.16
GitHub Action Run
2 jest 5956285679.2 23 Aug 2023 08:54PM UTC 0
63.29
GitHub Action Run
Source Files on build 5956285679
Detailed source file information is not available for this build.
  • Back to Repo
  • aea86eec on github
  • Prev Build on main (#5942350205)
  • Next Build on main (#5966601371)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc