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 definitions

See original GitHub issue

This issue is used to track down the ongoing work on TypeScript definitions for nivo packages.

As nivo isn’t built using TypeScript, it does not include definitions, if you’re working in a TS environment and already created one for your use case, please do not hesitate to submit a PR!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:15
  • Comments:30 (9 by maintainers)

github_iconTop GitHub Comments

15reactions
maayanbar13commented, Mar 30, 2020

Hi! just wanted to mention that there are some type definitions missing for the @nivo/core package, stumbled upon it while trying to use linearGradientDef. should probably add it to the list.

4reactions
SaphuAcommented, May 5, 2019

As I don’t have time right now to submit a pr (I might later) I’ll use this place to sum up typescript issues I find as I go:

Bar v0.51

  • Axis is missing renderTick property.
  • Axis legendPosition contains center but should be middle.
  • I think colorBy and tooltip should receive BarExtendedDatum as prop instead of BarDatum.

Pie v0.51 ~- [ ] Small issue, but doing something like this colorBy={(datum) => datum.color} won’t work because datum is of a specific type even though it could contain anything.~ Never mind, PieDatum has an indexer.

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.
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 >
TypeScript Definitions | Developer's Guide - GrapeCity
Hence, all the DataViewsJS packages on npm include TypeScript definitions. These TypeScript declaration (d.ts) files provide the type checking and ...
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 Typings: The Complete Guide: @types Compiler ...
Does Typescript type safety necessarily mean more ceremony when writing code? What are the multiple types of Typescript Type Definitions? How do ...
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