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.

Missing Typescript Definitions

See original GitHub issue

Hey! It seems like the index.d.ts file is out of date (a comment in the file mentions Informed v2.0.0). Notably, this means that the Multistep component (here) is seemingly unusable in a TS project:

image

The only solution for this that I could find is to disable TS (and esLint) in the file, which isn’t ideal.

I know that this is also the case with the Relevant component, and that the maintainer of this project doesn’t use Typescript too much (link), but I was wondering if there was any progress made on the TS definitions since then?


As a side note, there seems to be a mistake in the example in the documentation here in the code example at the bottom of the page. It’s missing a closing </div>: image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Bezmehrabicommented, Aug 21, 2021

Hi 😃, I have the same problem too. I’m working on it and will make a PR for it.

0reactions
joepuzzocommented, Apr 5, 2022

There is another issue open for missign types going to track there https://github.com/teslamotors/informed/issues/392

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Declare Missing Types for External Libraries -- newline
Custom Types Declaration#. First, in your tsconfig.json add a directory path to type declarations:.
Read more >
How to include missing type definition files in typescript ...
Try npm install @types/dyo if it exists or add a new declaration (.d.ts) file containing declare module 'dyo'; I include the modules like...
Read more >
Missing typescript types in the generated type definition file (d ...
The missing types in the generated type declaration file (d.ts) are causing typing errors when I try to use them in other projects...
Read more >
How to add missing types to a library. : r/typescript - Reddit
I'm having trouble adding types to a library. The specific library itself is Shippo's node client. It comes with type definitions however ...
Read more >
Missing type definition (typescript) - Handsontable Forum
Hi, We have upgraded to the latest version (11.1.0) and are experiencing missing type definitions for the samplingRatio and ...
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