Skip to content

Commit

Permalink
Reference the type
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Feb 17, 2025
1 parent 568fd9d commit f6af1ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/query/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
} from '@wordpress/blocks';

/** @typedef {import('@wordpress/blocks').WPBlockVariation} WPBlockVariation */
/** @typedef {import('@wordpress/components/build-types/query-controls/types').OrderByOption} OrderByOption */

/**
* @typedef IHasNameAndId
Expand Down Expand Up @@ -191,7 +192,7 @@ export function useIsPostTypeHierarchical( postType ) {
* List of avaiable options to order by.
*
* @param {string} postType The post type to check.
* @return {Object[]} List of order options.
* @return {OrderByOption[]} List of order options.
*/
export function useOrderByOptions( postType ) {
const supportsCustomOrder = useSelect(
Expand Down

0 comments on commit f6af1ec

Please sign in to comment.