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.

Duplicate jss types declarations with DefinitelyTyped

See original GitHub issue

jss files have typing in this repository: https://github.com/cssinjs/jss/blob/master/packages/jss/src/index.d.ts

But @types/jss does also exist: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jss/index.d.ts

If the jss project want to provide his own typings, the DefinitelyTyped should be removed But actually, both do not have much in common. It create some weird behaviour.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
HenriBeckcommented, Feb 21, 2019

Yeah, I will finish the PR today or tomorrow.

0reactions
VincentLangletcommented, Feb 21, 2019

@HenriBeck I think they need at least this PR (https://github.com/cssinjs/jss/pull/973) to upgrading @material-ui/core to v10.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate identifier with @types/node 10.0 #25342 - GitHub
Only local declarations can be exported from a module. node_modules/@types/node/index.d.ts(2417,19): error TS2661: Cannot export ' ...
Read more >
Typescript duplicated type declarations - Stack Overflow
Types have separate declarations of a private property 'mayBeSetNormalizedName'. Reading the message, I guess this is a hickup of Typescript not being able...
Read more >
@types/clone - npm
Start using @types/clone in your project by running `npm i ... TypeScript icon, indicating that this package has built-in type declarations.
Read more >
Publishing Typings to DefinitelyTyped | by Max Boguslavskiy
json .You could copy them from another package, but don't forget to update the info! Investigate which type of package you are trying...
Read more >
Content Types - ESBuild
Content Types. All of the built-in content types are listed below. Each content type has an associated "loader" which tells esbuild how to...
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