boo1ean/casual

Typescript declarations are outdated

vnenkpet opened this issue · 3 comments

For example, everything related to currency is missing in the index.d.ts file.

Docs

// Misc

casual.country_code    // 'ES'
casual.language_code   // 'ru'
casual.locale          // 'hi_IN'
casual.currency        // { symbol: 'R', name: 'South African Rand', symbol_native: 'R', decimal_digits: 2, rounding: 0, code: 'ZAR', name_plural: 'South African rand' }		
casual.currency_code   // 'TRY'
casual.currency_symbol // 'TL'
casual.currency_name   // Turkish Lira
casual.mime_type       // 'audio/mpeg'
casual.file_extension  // 'rtf'
casual.boolean         // true
casual.uuid            // '2f4dc6ba-bd25-4e66-b369-43a13e0cf150'

index.d.ts

    // Misc

    country_code: string;     // 'ES'
    language_code: string;    // 'ru'
    locale: string;           // 'hi_IN'
    mime_type: string;        // 'audio/mpeg'
    file_extension: string;   // 'rtf'
    uuid: string;             // '2f4dc6ba-bd25-4e66-b369-43a13e0cf150'

Hi, any update on when this issue will be resolved?

Hey ! I think this is what is causing my following error:

error TS2339: Property 'currency_code' does not exist on type 'Generators & Casual'.

 currency: casual.currency_code,

Any update ?

same question :)