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:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for fixing it and sorry for dropping the ball, too busy at work
@pedrodurek can you review then?