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

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

Build:
DEFAULT BRANCH: main
Ran 10 May 2026 04:56PM 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 04:55PM UTC coverage: 100.0%. Remained the same
25634423799.1

push

github

web-flow
types: round out public typings; re-affirm #240 (#320)

* types: complete public typings and re-affirm #240 fix

- randomList: was fully untyped (length/rng/initPcg = any) — now generic
  in T with a manually-declared curried overload set so partial application
  preserves the element type through to [T, PCGState][]
- Introduce and export RandomFn<T>, LongLike, CreatePcg, CreatePcgOptions
  so consumers can name them
- Use the new types in createPcg.ts's default export instead of inline literals

Verified the original issue scenario:
  const fn = () => createPcg32({}, 42, 54)
  // before: () => any (or non-portable Curry<...>)
  // after:  () => PCGState

And generic flow:
  const u32: RandomFn<number> = randomInt(0, 2 ** 32 - 1)
  randomList(10, u32, pcg)  // [number, PCGState][]

* refactor: move public types to types.ts, drop redundant overload

---------

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

12 of 12 branches covered (100.0%)

Branch coverage included in aggregate %.

70 of 70 relevant lines covered (100.0%)

16898.23 hits per line

Source Files on job 25634423799.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 25634423799
  • f6f878dc on github
  • Prev Job for on main (#25627044518.1)
  • Next Job for on main (#25634432590.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