Skip to content

Fix private method decorator types and stabilize timer tests - #198

Merged
vlio20 merged 1 commit into
masterfrom
codex/fix-private-method-decorators
Oct 29, 2026
Merged

vlio20 merged 1 commit into
masterfrom
codex/fix-private-method-decorators

Conversation

@vlio20

@vlio20 vlio20 commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Allow throttleAsync, throttle, debounce, and delay on private and protected TypeScript methods by accepting string | symbol property names while retaining descriptor and return type validation. Add eight compile-time regression cases, confirmed to fail with TS1241 before the fix and pass afterward.

Convert the remaining real waits in exec-time, before, after, cancel-previous, delegate, and multi-dispatch tests to fake timers. Cancellation tests now await both invocations instead of completing after the first result. Bump the package and lockfile to 3.0.1, add the changelog entry, and update the docs version and method visibility guidance.

Validation: type checks, lint, all 212 tests across 44 suites, CommonJS/ES module builds, and syntax checks for the edited documentation scripts pass. A review agent found no actionable issues in the code and test changes.

Closes #197.

@vlio20
vlio20 merged commit 655ded9 into master Oct 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

throttleAsync TypeScript signature rejects private methods

1 participant