@wordpress/components
Version:
UI components for WordPress.
13 lines • 387 B
TypeScript
/**
* Internal dependencies
*/
import type { Author, Category, TermWithParentAndChildren } from './types';
/**
* Returns terms in a tree form.
*
* @param flatTerms Array of terms in flat format.
*
* @return Terms in tree format.
*/
export declare function buildTermsTree(flatTerms: readonly (Author | Category)[]): TermWithParentAndChildren[];
//# sourceMappingURL=terms.d.ts.map