Typescript: message proprety does not exist on type 'Nexmo'
See original GitHub issueWith the following code:
import Nexmo from 'nexmo';
const nexmo = new Nexmo({
// @see https://github.com/Nexmo/nexmo-node/issues/277
applicationId: '',
apiKey: 'xxx',
apiSecret: 'xxx',
});
nexmo.message.sendSms('test', '620919191', 'this is a test');
I have:
TS2339: Property 'message' does not exist on type 'Nexmo'
Because of that, the library is unusable at all.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Property 'code' does not exist on type 'Error' - Stack Overflow
I get a Typescript error because the property 'code' does not exist on type 'Error'. this.authCtrl.login(user, { provider: AuthProviders.
Read more >How to fix 'Property does not exist on type Window in ...
Fixing the 'Property does not exist on type Window in TypeScript' error ... Fortunately for us, the fix is quite simple and involves...
Read more >[@types/express] Latest types throw Property 'headers', 'body ...
My builds are throwing the following errors after upgrades to latest version of the @types/express package: Property 'headers' does not exist on type...
Read more >Property 'status' does not exist on type 'Error' in TS | bobbyhadz
The error "Property 'status' does not exist on type 'Error'" occurs because the status property is not available on the Error interface.
Read more >API Errors - Vonage API Developer
When a Nexmo API returns an error, for instance, if your account has no ... The API key provided does not exist in...
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 FreeTop 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
Top GitHub Comments
@AlexLakatos is there any interest in converting the entire project to Typescript? The current structure would be map fairly easily, and it’s much easier to keep ts docs up to date and correct that way.
I would be happy to take a look at setting it up if you let me know which branch I should use as a base
I’m on a really no time moment sorry. If the issue is still not resolved when I’ll have more time, I’ll notify you about starting a work on it. 👍