hobby-by-category
Version:
A comprehensive, type-safe list of hobbies organized by categories.
29 lines (24 loc) • 896 B
TypeScript
type Hobby = string;
interface HobbiesByCategory {
creativeAndArtistic: Hobby[];
outdoorAndAdventure: Hobby[];
sportsAndFitness: Hobby[];
intellectualAndLearning: Hobby[];
techAndGaming: Hobby[];
musicAndPerformance: Hobby[];
collecting: Hobby[];
foodAndDrink: Hobby[];
socialAndCommunity: Hobby[];
relaxationAndMindfulness: Hobby[];
}
declare const hobbiesByCategory: HobbiesByCategory;
declare function getAllCategories(): string[];
declare function getHobbiesByCategory(category: keyof HobbiesByCategory): Hobby[];
declare function getRandomHobby(category?: keyof HobbiesByCategory): Hobby;
declare const _default: HobbiesByCategory & {
getAllCategories: typeof getAllCategories;
getHobbiesByCategory: typeof getHobbiesByCategory;
getRandomHobby: typeof getRandomHobby;
};
export default _default;
export { HobbiesByCategory, Hobby };