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 defs

See original GitHub issue

This seems to be a pretty efficient and amazing library.

Unfortunately I have been unable to successfully use it in my application with Vue.js using Typescript. The library lacks type declarations, and in general lacks the ability to be imported (e.g. with an ES6 import, import uPlot from 'uplot';) and used programmatically to render a chart.

Are there plans to create type declarations for the library? Without them, the library is more or less unusable in any modern JS framework.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
leeoniyacommented, Mar 21, 2020

alright, folks. here it is!

https://github.com/leeoniya/uPlot/blob/master/dist/uPlot.esm.d.ts

improvements and/or corrections are welcome.

1reaction
fluxincommented, Mar 14, 2020

I added some initial types in a PR I created #153

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - Type Declarations - TypeScript
Built-in Type Definitions ... TypeScript includes declaration files for all of the standardized built-in APIs available in JavaScript runtimes. This includes ...
Read more >
Surviving the TypeScript Ecosystem — Part 4 - Medium
The solution is to make a type definition file. A type definition file is a file that ends in “.d.ts”. It is a...
Read more >
TypeScript: Type Definition Files - DEV Community ‍ ‍
The purpose of type definition files is to describe all the functions, properties, and values of the modules. By installing them, we help ......
Read more >
Using type definitions (TypeScript tutorial, #9) - YouTube
Use existing JavaScript frameworks like jQuery in your TypeScript projects. Type definitions bring great autocomplete to libraries and ...
Read more >
The repository for high quality TypeScript type definitions.
The repository for high quality TypeScript type definitions. - GitHub - DefinitelyTyped/DefinitelyTyped: The repository for high quality TypeScript type ...
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