Skip to content

Commit

Permalink
Update Type
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 15, 2024
1 parent 81726b3 commit d049eee
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/fields/src/fields/use-post-fields/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ import commentStatusField from '../comment-status';
import titleField from '../title';
import dateField from '../date';
import authorField from '../author';
import type { BasePost, BasePostWithEmbeddedAuthor } from '../../types';

type Post = BasePost | BasePostWithEmbeddedAuthor;
import type { BasePostWithEmbeddedAuthor } from '../../types';

interface UsePostFieldsReturn {
isLoading: boolean;
fields: Field< Post >[];
fields: Field< BasePostWithEmbeddedAuthor >[];
}

interface Author {
Expand Down Expand Up @@ -53,7 +51,7 @@ function usePostFields(): UsePostFieldsReturn {
parentField,
commentStatusField,
passwordField,
] as Field< Post >[],
] as Field< BasePostWithEmbeddedAuthor >[],
[ authors ]
);

Expand Down

0 comments on commit d049eee

Please sign in to comment.