Skip to content

Commit

Permalink
feat(line): Updated @nivo/line typescript definition to add all curve…
Browse files Browse the repository at this point in the history
… options (#197, #944)

Some curve options where missing (basis, cardinal, catmullRom)
  • Loading branch information
escobar5 committed May 10, 2020
1 parent f1bff16 commit 7b3c503
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/line/index.d.ts
Expand Up @@ -128,13 +128,17 @@ declare module '@nivo/line' {
margin?: Box

curve?:
| 'basis'
| 'cardinal'
| 'catmullRom'
| 'linear'
| 'monotoneX'
| 'monotoneY'
| 'natural'
| 'stepBefore'
| 'step'
| 'stepAfter'
| 'stepBefore'

lineWidth?: number

colors?: OrdinalColorsInstruction
Expand Down

0 comments on commit 7b3c503

Please sign in to comment.