UNPKG

@wordpress/components

Version:
10 lines • 354 B
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