Latest type definition breaks typescript compilation
See original GitHub issueMy typescript code uses the api as follows :
import * as SpotifyWebApi from 'spotify-web-api-js';
let spotifyApi: SpotifyWebApi.SpotifyWebApiJs;
This works fine with 1.1.0 .
Since 1.1.1 , this fails with Namespace '".../spotify-web-api"' has no exported member 'SpotifyWebApiJs'
.
I could not find a way to work with the new type file.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
TSConfig Reference - Docs on every TSConfig option
Future versions of TypeScript may introduce additional stricter checking under this flag, so upgrades of TypeScript might result in new type errors in...
Read more >Typescript Typings: The Complete Guide: @types Compiler ...
This is also because the Typescript compiler features keep evolving so fast that not all type definitions leverage all the latest features.
Read more >TypeScript Compiling with Visual Studio Code
Typically the first step in any new TypeScript project is to add a tsconfig.json file. A tsconfig.json file defines the TypeScript project settings,...
Read more >Understanding TypeScript's “Compilation Process” & the ...
Similarly, when you define a variable without a type, the TypeScript compiler infers the type from the value being assigned to the variable....
Read more >rollup/plugin-typescript
Latest version: 10.0.1, last published: a month ago. ... TypeScript icon, indicating that this package has built-in type declarations.
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
Hey @pduchesne I have the following:
That should work for you.
I think I made those type changes in 1.1.0, and sounds like what you are saying is they are breaking changes so I’ll take a look.
Closed with commit https://github.com/JMPerez/spotify-web-api-js/commit/1487329717fc12665bd9b983b71040609bdb4069