11import  React ,  {  useState  }  from  'react' ; 
2- import  {  DSVImport ,  ColumnsType  }  from  './' ; 
2+ import  {  DSVImport ,  ColumnType  }  from  './' ; 
33import  {  action  }  from  '@storybook/addon-actions' ; 
44import  styled  from  '@emotion/styled' ; 
55
@@ -8,7 +8,7 @@ export default { title: 'Usage|Examples' };
88type  BasicType  =  {  forename : string ;  surname : string ;  email : string  } ; 
99
1010export  const  BasicUsage  =  ( )  =>  { 
11-   const  columns : ColumnsType < BasicType >  =  [ 
11+   const  columns : ColumnType < BasicType > [ ]  =  [ 
1212    {  key : 'forename' ,  label : 'Forename'  } , 
1313    {  key : 'surname' ,  label : 'Surname'  } , 
1414    {  key : 'email' ,  label : 'Email'  } 
@@ -25,7 +25,7 @@ export const BasicUsage = () => {
2525BasicUsage . story  =  {  name : 'Basic usage'  } ; 
2626
2727export  const  UsingOnChangeCallback  =  ( )  =>  { 
28-   const  columns : ColumnsType < BasicType >  =  [ 
28+   const  columns : ColumnType < BasicType > [ ]  =  [ 
2929    {  key : 'forename' ,  label : 'Forename'  } , 
3030    {  key : 'surname' ,  label : 'Surname'  } , 
3131    {  key : 'email' ,  label : 'Email'  } 
@@ -58,7 +58,7 @@ const CustomTablePreview = styled(DSVImport.TablePreview)`
5858` ; 
5959
6060export  const  UsingOnValidationCallback  =  ( )  =>  { 
61-   const  columns : ColumnsType < BasicType >  =  [ 
61+   const  columns : ColumnType < BasicType > [ ]  =  [ 
6262    {  key : 'forename' ,  label : 'Forename'  } , 
6363    {  key : 'surname' ,  label : 'Surname'  } , 
6464    {  key : 'email' ,  label : 'Email' ,  rules : [ {  constraint : {  unique : true  } ,  message : 'Duplicates are not allowed'  } ]  } 
0 commit comments