All files / platform/ui-next/src/types AppTypes.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25                                                 
/**
 * Customization ids owned by `ui-next`: the component here is the consumer, so
 * the shape it reads is declared here, next to that consumer. The default value
 * is registered by `extension-default`
 * (`src/customizations/studyBrowserCustomization.ts`) — declaring the type here
 * is what lets that package's default be checked against this contract.
 */
declare global {
  namespace AppTypes {
    interface Customizations {
      /**
       * Sort options offered by the study browser's sort dropdown. Read by
       * `StudyBrowserSort`, which indexes `[0]` for its initial selection, so a
       * default with at least one entry is expected.
       */
      'studyBrowser.sortFunctions': Array<{
        label: string;
        sortFunction: (a: AppTypes.DisplaySet, b: AppTypes.DisplaySet) => number;
      }>;
    }
  }
}
 
export {};