Skip to content

Commit bf4061a

Browse files
committedAug 28, 2021
feat(bar): ignore TS error when importing source from stories/unit tests
1 parent 837be3e commit bf4061a

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed
 

‎packages/bar/stories/bar.stories.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { withKnobs, boolean, select } from '@storybook/addon-knobs'
55
import { generateCountriesData, sets } from '@nivo/generators'
66
import { random, range } from 'lodash'
77
import { useTheme } from '@nivo/core'
8+
// @ts-ignore
89
import { Bar, BarDatum } from '../src'
910
import { AxisTickProps } from '@nivo/axes'
1011

‎packages/bar/stories/barCanvas.stories.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useRef } from 'react'
22
import { storiesOf } from '@storybook/react'
33
import { withKnobs, boolean } from '@storybook/addon-knobs'
44
import { generateCountriesData } from '@nivo/generators'
5+
// @ts-ignore
56
import { BarCanvas, BarCanvasLayer, BarDatum, canvasDefaultProps } from '../src'
67
import { button } from '@storybook/addon-knobs'
78

‎packages/bar/stories/responsivBarCanvas.stories.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useRef } from 'react'
22
import { storiesOf } from '@storybook/react'
33
import { generateCountriesData } from '@nivo/generators'
4+
// @ts-ignore
45
import { BarDatum, ResponsiveBarCanvas } from '../src'
56
import { button } from '@storybook/addon-knobs'
67

‎packages/bar/tests/Bar.test.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useState } from 'react'
22
import { mount } from 'enzyme'
3+
// @ts-ignore
34
import { Bar, BarDatum, BarItemProps, ComputedDatum } from '../src'
45

56
type IdValue = {

0 commit comments

Comments
 (0)
Please sign in to comment.