question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing type for requestOptions property in BackendOptions

See original GitHub issue

🐛 Bug Report

The requestOptions property in BackendOptions cannot be used in ts files due to its type missing in index.d.ts

To Reproduce

    type RequestType = BackendOptions['request'];
    const getTranslations: RequestType = (
      options,
      url,
      payload,
      callback,
    ) => {
      const {requestOptions} = options; // TypeScript error: Property 'requestOptions' does not exist on type 'BackendOptions'.
    };

Expected behavior

No error

Your Environment

  • runtime version: VS Code 1.56.1, TypeScript 3.8.3
  • i18next-http-backend version: 1.2.4
  • os: Mac

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
emsa16commented, May 25, 2021

Thanks for fixing it and sorry for dropping the ball, too busy at work

1reaction
adraicommented, May 19, 2021

@pedrodurek can you review then?

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub - i18next/i18next-http-backend
This is a simple i18next backend to be used in Node.js, in the browser and for Deno. It will load resources from a...
Read more >
angular - Type 'Headers' has no properties in common with ...
Pre 4.3 / Http. I just noticed that RequestOptions now requires you to explicitly pass named options as an object, like: headers: ...
Read more >
Configuration Options - i18next documentation
'current' or 'all' By default it uses the configured fallback language to save the missing keys to. 'current' will use the current used/detected...
Read more >
angular-ui/ui-router - Gitter
@christopherthielen i'm facing some errors whe i use UiRouter as dep of my custom interceptor. Uirouter is always undefined, that was the cause...
Read more >
HAProxy version 2.2.22 - Configuration Manual - GitHub Pages
For example "frontend foo" will create a new section of type "frontend" named "foo". ... Sets the character separator for the API properties...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found