casual icon indicating copy to clipboard operation
casual copied to clipboard

Typescript declarations are outdated

Open vnenkpet opened this issue 6 years ago • 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'

vnenkpet avatar Sep 18 '18 09:09 vnenkpet

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

saritvakrat avatar May 27 '19 15:05 saritvakrat

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 ?

ls-chloe-schoreisz avatar Aug 01 '19 14:08 ls-chloe-schoreisz

same question :)

kelly-tock avatar Aug 28 '20 18:08 kelly-tock