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

philihp / pcg / 25626910059 / 1
100%
main: 100%

Build:
DEFAULT BRANCH: main
Ran 10 May 2026 10:58AM UTC
Files 5
Run time 0s
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

10 May 2026 10:56AM UTC coverage: 100.0%. Remained the same
25626910059.1

push

github

web-flow
fix: make createPcg32 return type nameable (#240) (#318)

* fix: make createPcg32 return type nameable (#240)

The default export of createPcg.ts was wrapped in ramda's curry() with
untyped destructured parameters, so the inferred type degenerated to a
ts-toolbelt Curry<...> referencing internals — and consumers ended up
with TS2883/TS4023 portability errors (or `any` on older typings).

- Drop curry on the createPcg factory and give every parameter a type
- Introduce CreatePcg / CreatePcgOptions types and export them
- Re-export OutputFnType, StreamScheme, PCGConfig, PCGState, OutputFn,
  SchemeFn from the package entrypoint so consumers can name them

Closes #240

* fix: keep curry, type the inner function instead

---------

Co-authored-by: Claude <noreply@anthropic.com>

12 of 12 branches covered (100.0%)

Branch coverage included in aggregate %.

69 of 69 relevant lines covered (100.0%)

17143.06 hits per line

Source Files on job 25626910059.1
  • Tree
  • List 5
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25626910059
  • 362e2ba3 on github
  • Prev Job for on main (#25626690259.1)
  • Next Job for on main (#25627044518.1)
  • Delete
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