1import type { ComponentType } from 'react'; 2 3type AlgoliaHighlight = { 4 value: string; 5}; 6 7export type AlgoliaItemHierarchy<T> = { 8 lvl0?: T | null; 9 lvl1?: T | null; 10 lvl2?: T | null; 11 lvl3?: T | null; 12 lvl4?: T | null; 13 lvl5?: T | null; 14 lvl6?: T | null; 15}; 16 17export type AlgoliaItemType = { 18 url: string; 19 objectID: string; 20 anchor: string | null; 21 content: string | null; 22 hierarchy: AlgoliaItemHierarchy<string>; 23 _highlightResult: { 24 content: AlgoliaHighlight | null; 25 hierarchy: AlgoliaItemHierarchy<AlgoliaHighlight>; 26 }; 27}; 28 29export type ExpoItemType = { 30 label: string; 31 url: string; 32 Icon?: ComponentType<any>; 33}; 34 35export type RNDirectoryItemType = { 36 npmPkg: string; 37 githubUrl: string; 38 npm: { 39 downloads: number; 40 }; 41 github: { 42 stats: { 43 stars: number; 44 }; 45 }; 46}; 47