Skip to content

Commit

Permalink
Document BasePost interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Jan 7, 2025
1 parent 757d1fc commit 24bbb1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/fields/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ interface EmbeddedAuthor {
author: Author[];
}

/**
* BasePost interface used for all post types.
*/
export interface BasePost extends CommonPost {
comment_status?: 'open' | 'closed';
excerpt?: string | { raw: string; rendered: string };
Expand Down

0 comments on commit 24bbb1d

Please sign in to comment.