TypeScript definitions
See original GitHub issueThis 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!
-  @nivo/barResponsiveBar - https://github.com/plouc/nivo/pull/199
-  @nivo/barResponsiveBarCanvas - https://github.com/plouc/nivo/pull/199
-  @nivo/calendarResponsiveCalendar - https://github.com/plouc/nivo/pull/223
-  @nivo/calendarResponsiveCalendarCanvas
-  @nivo/chordResponsiveChord
-  @nivo/chordResponsiveChordCanvas
-  @nivo/circle-packingResponsiveBubble
-  @nivo/circle-packingResponsiveBubbleHtml
-  @nivo/circle-packingResponsiveBubbleCanvas
-  @nivo/heatmapResponsiveHeatMap - https://github.com/plouc/nivo/pull/198
-  @nivo/heatmapResponsiveHeatMapCanvas - https://github.com/plouc/nivo/pull/198
-  @nivo/lineResponsiveLine - https://github.com/plouc/nivo/pull/316
-  @nivo/lineResponsiveLineCanvas
-  @nivo/pieResponsivePie - https://github.com/plouc/nivo/pull/207
-  @nivo/radarResponsiveRadar
-  @nivo/sankeyResponsiveSankey - https://github.com/plouc/nivo/pull/211
-  @nivo/scatterplotResponsiveScatterPlot - https://github.com/plouc/nivo/pull/319
-  @nivo/scatterplotResponsiveScatterPlotCanvas - https://github.com/plouc/nivo/pull/319
-  @nivo/streamResponsiveStream
-  @nivo/sunburstResponsiveSunburst
-  @nivo/treemapResponsiveTreeMap
-  @nivo/treemapResponsiveTreeMapHtml
-  @nivo/treemapResponsiveTreeMapCanvas
-  @nivo/waffleResponsiveWaffle - https://github.com/plouc/nivo/pull/202
-  @nivo/waffleResponsiveWaffleHtml - https://github.com/plouc/nivo/pull/202
-  @nivo/waffleResponsiveWaffleCanvas - https://github.com/plouc/nivo/pull/202
Issue Analytics
- State:
- Created 5 years ago
- Reactions:15
- Comments:30 (9 by maintainers)
 Top Results From Across the Web
Top 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 > Top Related Medium Post
Top Related Medium Post
No results found
 Top Related StackOverflow Question
Top Related StackOverflow Question
No results found
 Troubleshoot Live Code
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free Top Related Reddit Thread
Top Related Reddit Thread
No results found
 Top Related Hackernoon Post
Top Related Hackernoon Post
No results found
 Top Related Tweet
Top Related Tweet
No results found
 Top Related Dev.to Post
Top Related Dev.to Post
No results found
 Top Related Hashnode Post
Top Related Hashnode Post
No results found

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.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
Axisis missingrenderTickproperty.AxislegendPositioncontainscenterbut should bemiddle.colorByandtooltipshould receiveBarExtendedDatumas prop instead ofBarDatum.Pie v0.51 ~- [ ] Small issue, but doing something like this
colorBy={(datum) => datum.color}won’t work becausedatumis of a specific type even though it could contain anything.~ Never mind, PieDatum has an indexer.