1- import { Meta , StoryFn } from '@storybook/react' ;
1+ import type { Meta , StoryFn } from '@storybook/react' ;
22import React from 'react' ;
33
44import { FIXED , LEGACY_THEME , MOVING , YCLOUD_THEME } from '../lib/constants' ;
55
66import ExampleDT100 , { defaultProps } from './Example/Example' ;
77import { ResizeableTable } from './Resizeable/Resizeable' ;
88
9- export default {
9+ const meta : Meta < typeof ExampleDT100 > = {
1010 title : 'React Data Table' ,
1111 component : ExampleDT100 ,
12- } as Meta < typeof ExampleDT100 > ;
12+ } ;
13+
14+ export default meta ;
1315
1416const templateArgTypes = {
1517 stickyHeadValues : {
@@ -27,12 +29,12 @@ const templateArgTypes = {
2729
2830const Template : StoryFn < typeof ExampleDT100 > = ( args ) => < ExampleDT100 { ...args } /> ;
2931
30- export const Default = Template . bind ( { } ) ;
32+ export const Default : StoryFn < typeof ExampleDT100 > = Template . bind ( { } ) ;
3133Default . args = defaultProps ;
3234Default . argTypes = templateArgTypes ;
3335
3436const ResizeableTemplate : StoryFn < typeof ResizeableTable > = ( args ) => < ResizeableTable { ...args } /> ;
3537
36- export const Resizeable = ResizeableTemplate . bind ( { } ) ;
37- Default . args = { theme : YCLOUD_THEME } ;
38- Default . argTypes = templateArgTypes ;
38+ export const Resizeable : StoryFn < typeof ResizeableTable > = ResizeableTemplate . bind ( { } ) ;
39+ Resizeable . args = { theme : YCLOUD_THEME } ;
40+ Resizeable . argTypes = templateArgTypes ;
0 commit comments