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.

TypeScript type definitions are outdated

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://github.com

Steps to reproduce

try to run npm run tsc from latest master and you’ll notice difference between published and generated type definitions

What is expected?

types generated are correct

What is actually happening?

e.g. Line doesn’t have data and many other type definitions missed, it can be fixed easily with just npm run tsc && npm publish

Environment Info
Recharts v2.0.3
React 16
System macOS
Browser any

I can help with automation if you want to review/accept a PR

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
terenceodonoghuecommented, Jan 29, 2021

@avindra I meant to say, that PR I referenced updated some existing types and added new ones - the published package contained these changes (under types/src), but it also contained the old, outdated definitions (under types).

0reactions
avindracommented, Feb 2, 2021

Unfortunately I do not have publish access, so I can’t do anything. @xile611 or @arcthur are the only 2 with that AFAIK.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript definitions are out of date · Issue #102 · eemeli/yaml
The DefinitelyTyped TS definitions haven't been updated since the 1.0 release last fall, and the library's API has expanded a bit since then....
Read more >
Serverless service file Typescript definitions will never be ...
Serverless service file Typescript definitions will never be outdated again! Since v1. 72.0, the Serverless framework accepts serverless.
Read more >
Documentation - Advanced Types - TypeScript
This page lists some of the more advanced ways in which you can model types, it works in tandem with the Utility Types...
Read more >
TypeScript With Fewer Types?. Why we should avoid writing ...
Spending time managing types, specifically in the scenarios listed above, is typically not productive. Outdated API Type Definitions. Let's say ...
Read more >
How to overwrite incorrect TypeScript type definition installed ...
ts using npm install @types/dotenv --save . Then I realize that the types are not correct. For example, the config() function doesn't return...
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