DX - Add JSDOC for Hooks To improve developer coding experience. #5924
balmacefa
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How Can I know what this hook does, arguments and expected outcomes without going to the documentation, repetition of coding or experience?
Propusal
Include JSDoc to the expose
.d.td
file located at node_modules > payload > dist > globals > config > types.d.tsFor reference I'll use
BeforeValidateHook
. See Docs -> https://payloadcms.com/docs/hooks/collections#beforechangeResult
On this way We can tell what the contract of this hook on the editor.
Beta Was this translation helpful? Give feedback.
All reactions