Skip to content

Commit

Permalink
Add JSDoc for password field export and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
louwie17 committed Oct 31, 2024
1 parent 02b8eb0 commit 6abc19e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fields/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ This field is used to display the post parent.

### passwordField

Undocumented declaration.
This field is used to display the post password.

### permanentlyDeletePost

Expand Down
3 changes: 3 additions & 0 deletions packages/fields/src/fields/password/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ const passwordField: Field< BasePost > = {
isVisible: ( item ) => item.status !== 'private',
};

/**
* This field is used to display the post password.
*/
export default passwordField;

0 comments on commit 6abc19e

Please sign in to comment.