fix: use `@chainable` per-overload by LuLaValva · Pull Request #8504 · processing/p5.js

Changes:

  • @chainable in JSDoc applies to one overload and not the whole function
  • To test, view updates to p5.d.ts after npm run generate-types

code screenshot showing that the type signature for a size method changed from returning Element for both overloads to object and element in the correct places

Updated methods: volume, speed, position, size, style, attribute, value

PR Checklist

I don't think any of these apply 😅... lint has a bunch of warnings but none related to my code, and I don't see unit/snapshot tests for the p5.d.ts file.