@blinkk/editor
Version:
Structured content editor with live previews.
8 lines (7 loc) • 316 B
TypeScript
/**
* Sort keys based on priority list of keys. They will always be first and in
* same order as the priority list.
*
* @param priorityKeys List of keys that should be sorted before any other keys.
*/
export declare function createPriorityKeySort(priorityKeys: Array<string>): (a: string, b: string) => number;