Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core data: Fix some typing issues in JSDoc comments (#39214)
Part of #39211 Fixes a few small issues with the JSDoc types in @wordpress/core-data. - queue of actions in `batch` was untyped, added type holding vague structure of type - `await`'ed `Promise` called `resolve()` but wasn't typed as `Promise<void>`. this may not be possible in JSDoc whereas it is in `.ts` with the type parameter. I've made it `resolve(undefined)` to get around this. - inner loop of batched actions had ambiguous types (list of things or tuple?) and I've extracted the inline assignments to variables in order to eliminate the ambiguity - `ObservedSet` used spread arguments for `Set`'s 1-arity functions. I've replaced `...args` with `value` to match the API of `Set`
- Loading branch information