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

microlinkhq / async-memoize-one / 40908073509
98%

Build:
DEFAULT BRANCH: master
Ran 29 Oct 2026 04:05PM UTC
Jobs 1
Files 1
Run time 1min
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

29 Oct 2026 04:05PM UTC coverage: 97.561%. Remained the same
40908073509

push

github

web-flow
fix(types): return what the memoized function actually is (#26)

* fix(types): return what the memoized function actually is

`memoizeOne` returns a new async arrow function: properties on `fn` are
not copied, `fn` is called without `this`, and the result is always a
Promise. The old `(fn: T) => T` signature claimed otherwise.

The declaration now returns `(...args) => Promise<Awaited<Result>>`,
requires `this: void`, and types `isEqual` arguments as `fn`'s
parameters. Generic functions keep their type parameters, and a second
overload keeps `memoizeOne<FnType>(...)` compiling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(types): lock comparator arguments and nested unwrapping

Widening isEqual's arguments, the explicit overload's parameters, or
replacing Awaited with a single unwrap left the type test green.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock the comparator's previous arguments

Widening only oldArgs back to any[] left the type test green.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock required parameters and boolean comparators

Making the wrapper's parameters optional, or widening the comparator
return to any, left the type test green.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock options, arity, and empty returns

Banning false, an omitted option, a null comparator, extra arguments,
or Promise<void> left the type test green. The promise constraint no
longer uses any.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock option values and comparator returns

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock the promise constraint and other returns

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock explicit undefined on cachePromiseRejection

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock exactOptionalPropertyTypes

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(typ... (continued)

8 of 9 branches covered (88.89%)

Branch coverage included in aggregate %.

32 of 32 relevant lines covered (100.0%)

4.53 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40908073509.1 29 Oct 2026 04:05PM UTC 1
97.56
GitHub Action Run
Source Files on build 40908073509
  • Tree
  • List 1
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #40908073509
  • 8bc68efa on github
  • Prev Build on master (#40840682086)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc