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/bar
ResponsiveBar - https://github.com/plouc/nivo/pull/199 -
@nivo/bar
ResponsiveBarCanvas - https://github.com/plouc/nivo/pull/199 -
@nivo/calendar
ResponsiveCalendar - https://github.com/plouc/nivo/pull/223 -
@nivo/calendar
ResponsiveCalendarCanvas -
@nivo/chord
ResponsiveChord -
@nivo/chord
ResponsiveChordCanvas -
@nivo/circle-packing
ResponsiveBubble -
@nivo/circle-packing
ResponsiveBubbleHtml -
@nivo/circle-packing
ResponsiveBubbleCanvas -
@nivo/heatmap
ResponsiveHeatMap - https://github.com/plouc/nivo/pull/198 -
@nivo/heatmap
ResponsiveHeatMapCanvas - https://github.com/plouc/nivo/pull/198 -
@nivo/line
ResponsiveLine - https://github.com/plouc/nivo/pull/316 -
@nivo/line
ResponsiveLineCanvas -
@nivo/pie
ResponsivePie - https://github.com/plouc/nivo/pull/207 -
@nivo/radar
ResponsiveRadar -
@nivo/sankey
ResponsiveSankey - https://github.com/plouc/nivo/pull/211 -
@nivo/scatterplot
ResponsiveScatterPlot - https://github.com/plouc/nivo/pull/319 -
@nivo/scatterplot
ResponsiveScatterPlotCanvas - https://github.com/plouc/nivo/pull/319 -
@nivo/stream
ResponsiveStream -
@nivo/sunburst
ResponsiveSunburst -
@nivo/treemap
ResponsiveTreeMap -
@nivo/treemap
ResponsiveTreeMapHtml -
@nivo/treemap
ResponsiveTreeMapCanvas -
@nivo/waffle
ResponsiveWaffle - https://github.com/plouc/nivo/pull/202 -
@nivo/waffle
ResponsiveWaffleHtml - https://github.com/plouc/nivo/pull/202 -
@nivo/waffle
ResponsiveWaffleCanvas - 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
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
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Axis
is missingrenderTick
property.Axis
legendPosition
containscenter
but should bemiddle
.colorBy
andtooltip
should receiveBarExtendedDatum
as prop instead ofBarDatum
.Pie v0.51 ~- [ ] Small issue, but doing something like this
colorBy={(datum) => datum.color}
won’t work becausedatum
is of a specific type even though it could contain anything.~ Never mind, PieDatum has an indexer.