Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
widoz committed Aug 20, 2023
1 parent 1d42e0b commit ba8b683
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sources/js/src/hooks/use-entity-records.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ enum ResolveStatus {
* `records()` as an indicator of the hook status.
*
* @internal
* @param kind The kind of entity to fetch. E.g. 'root', 'postType', 'taxonomy', etc.
* @param name The name of the entity to fetch. E.g. 'post', 'page', 'category', etc.
* @param kind The kind of entity to fetch. E.g. 'root', 'postType', 'taxonomy', etc.
* @param name The name of the entity to fetch. E.g. 'post', 'page', 'category', etc.
* @param queryArgs The query args to pass to the entity fetch. E.g. { per_page: 100 }
*/
export function useEntityRecords<Entity>(
Expand Down
3 changes: 2 additions & 1 deletion sources/js/src/hooks/use-query-viewable-post-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { useEntityRecords } from './use-entity-records';
/**
* Hook to obtain the `viewable` post types only.
* This is an api on top of `useEntityRecords` to facilitate the usage of the `viewable` post types.
* @api
*
* @public
*/
export function useQueryViewablePostTypes(): EntitiesSearch.EntitiesRecords<EntitiesSearch.ViewablePostType> {
const entitiesRecords = useEntityRecords<EntitiesSearch.PostType<'edit'>>(
Expand Down

0 comments on commit ba8b683

Please sign in to comment.