facundoolano / app-store-scraper

scrape data from the itunes app store
MIT License
1.03k stars 243 forks source link

Feature Request: TypeScript support #118

Open imWildCat opened 4 years ago

imWildCat commented 4 years ago

Description:

Hello! Thanks for creating this awesome library and it is super helpful!

Would you like me to add a TypeScript (e.g. app-store-scraper.d.ts) for this library? This would be super helpful for TypeScript users.

Example code:

/** Declaration file generated by dts-gen */

export const category: {
    BOOKS: number;
    BUSINESS: number;
    CATALOGS: number;
    EDUCATION: number;
    ENTERTAINMENT: number;
    FINANCE: number;
    FOOD_AND_DRINK: number;
    GAMES: number;
    GAMES_ACTION: number;
    GAMES_ADVENTURE: number;
    GAMES_ARCADE: number;
    GAMES_BOARD: number;
    GAMES_CARD: number;
    GAMES_CASINO: number;
    GAMES_DICE: number;
    GAMES_EDUCATIONAL: number;
    GAMES_FAMILY: number;
    GAMES_MUSIC: number;
    GAMES_PUZZLE: number;
    GAMES_RACING: number;
    GAMES_ROLE_PLAYING: number;
    GAMES_SIMULATION: number;
    GAMES_SPORTS: number;
    GAMES_STRATEGY: number;
    GAMES_TRIVIA: number;
    GAMES_WORD: number;
    HEALTH_AND_FITNESS: number;
    LIFESTYLE: number;
    MAGAZINES_AND_NEWSPAPERS: number;
    MAGAZINES_ARTS: number;
    MAGAZINES_AUTOMOTIVE: number;
    MAGAZINES_BUSINESS: number;
    MAGAZINES_CHILDREN: number;
    MAGAZINES_COMPUTER: number;
    MAGAZINES_CRAFTS: number;
    MAGAZINES_ELECTRONICS: number;
    MAGAZINES_ENTERTAINMENT: number;
    MAGAZINES_FAMILY: number;
    MAGAZINES_FASHION: number;
    MAGAZINES_FOOD: number;
    MAGAZINES_HEALTH: number;
    MAGAZINES_HISTORY: number;
    MAGAZINES_HOME: number;
    MAGAZINES_LITERARY: number;
    MAGAZINES_MEN: number;
    MAGAZINES_MOVIES_AND_MUSIC: number;
    MAGAZINES_OUTDOORS: number;
    MAGAZINES_PETS: number;
    MAGAZINES_POLITICS: number;
    MAGAZINES_PROFESSIONAL: number;
    MAGAZINES_REGIONAL: number;
    MAGAZINES_SCIENCE: number;
    MAGAZINES_SPORTS: number;
    MAGAZINES_TEENS: number;
    MAGAZINES_TRAVEL: number;
    MAGAZINES_WEDDINGS: number;
    MAGAZINES_WOMEN: number;
    MEDICAL: number;
    MUSIC: number;
    NAVIGATION: number;
    NEWS: number;
    PHOTO_AND_VIDEO: number;
    PRODUCTIVITY: number;
    REFERENCE: number;
    SHOPPING: number;
    SOCIAL_NETWORKING: number;
    SPORTS: number;
    TRAVEL: number;
    UTILITIES: number;
    WEATHER: number;
};

export const collection: {
    NEW_FREE_IOS: string;
    NEW_IOS: string;
    NEW_PAID_IOS: string;
    TOP_FREE_IOS: string;
    TOP_FREE_IPAD: string;
    TOP_FREE_MAC: string;
    TOP_GROSSING_IOS: string;
    TOP_GROSSING_IPAD: string;
    TOP_GROSSING_MAC: string;
    TOP_MAC: string;
    TOP_PAID_IOS: string;
    TOP_PAID_IPAD: string;
    TOP_PAID_MAC: string;
};

export const device: {
    ALL: string;
    IPAD: string;
    MAC: string;
};

export const markets: {
    AE: number;
    AI: number;
    AM: number;
    AO: number;
    AR: number;
    AT: number;
    AU: number;
    AZ: number;
    BB: number;
    BE: number;
    BG: number;
    BH: number;
    BM: number;
    BN: number;
    BO: number;
    BR: number;
    BW: number;
    BY: number;
    BZ: number;
    CA: number;
    CH: number;
    CL: number;
    CN: number;
    CO: number;
    CR: number;
    CY: number;
    CZ: number;
    DE: number;
    DK: number;
    DM: number;
    DZ: number;
    EC: number;
    EE: number;
    EG: number;
    ES: number;
    FI: number;
    FR: number;
    GB: number;
    GD: number;
    GH: number;
    GR: number;
    GT: number;
    GY: number;
    HK: number;
    HN: number;
    HR: number;
    HU: number;
    ID: number;
    IE: number;
    IL: number;
    IN: number;
    IS: number;
    IT: number;
    JM: number;
    JO: number;
    JP: number;
    KE: number;
    KW: number;
    KY: number;
    LB: number;
    LK: number;
    LT: number;
    LU: number;
    LV: number;
    MG: number;
    MK: number;
    ML: number;
    MO: number;
    MS: number;
    MT: number;
    MU: number;
    MX: number;
    MY: number;
    NE: number;
    NG: number;
    NI: number;
    NL: number;
    NO: number;
    NP: number;
    NZ: number;
    OM: number;
    PA: number;
    PE: number;
    PH: number;
    PK: number;
    PL: number;
    PT: number;
    PY: number;
    QA: number;
    RO: number;
    RU: number;
    SA: number;
    SE: number;
    SG: number;
    SI: number;
    SK: number;
    SN: number;
    SR: number;
    SV: number;
    TH: number;
    TN: number;
    TR: number;
    TW: number;
    TZ: number;
    UA: number;
    UG: number;
    US: number;
    UY: number;
    UZ: number;
    VE: number;
    VG: number;
    VN: number;
    YE: number;
    ZA: number;
};

export const sort: {
    HELPFUL: string;
    RECENT: string;
};

// Unfinished

export function app(opts: any): any;

export function developer(opts: any): any;

export function list(opts: any): any;

export function memoized(opts: any): any;

export function ratings(opts: any): any;

export function reviews(opts: any): any;

export function search(opts: any): any;

export function similar(opts: any): any;

export function suggest(opts: any): any;
dmastag commented 3 years ago

@imWildCat that would be awesome Maybe if you create a PR the Author will merge it ?