Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript declarations are outdated #81

Open
vnenkpet opened this issue Sep 18, 2018 · 3 comments
Open

Typescript declarations are outdated #81

vnenkpet opened this issue Sep 18, 2018 · 3 comments

Comments

@vnenkpet
Copy link

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'
@saritvakrat
Copy link

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

@ls-chloe-schoreisz
Copy link

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 ?

@kelly-tock
Copy link

same question :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants