@itxch/contentful-import
Version:
This tool allows you to import JSON dump exported by contentful-export
8 lines (7 loc) • 357 B
TypeScript
/**
* Given a list of entries, this function reorders them so that entries which
* are linked from other entries always come first in the order. This ensures
* that when we publish entries, we are not publishing entries which contain
* links to other entries which haven't been published yet.
*/
export default function sortEntries(entries: any): any;