File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ export interface TodoItem {
55    uuid : string ; 
66} 
77export  interface  AddProps  { 
8-     addItem : ( item : TodoItem )  =>  void ; 
8+     addItem : ( item : TodoItem   |   TodoItem [ ] )  =>  void ; 
99} 
1010export  interface  TodoCompletedItemsProp  { 
1111    items : TodoItem [ ] ; 
1212    setItemsCallback : ( updatedItems : TodoItem [ ] )  =>  void ; 
1313    itemIndex : number ; 
1414} 
1515export  interface  TodoAppProps  { 
16-     defaultItems : TodoItem [ ] ; 
16+     defaultItems ? : TodoItem [ ] ; 
1717    onChange : ( items : TodoItem [ ] )  =>  void ; 
1818} 
1919declare  const  _default : ( props : TodoAppProps )  =>  JSX . Element ; 
Original file line number Diff line number Diff line change 1- import  Button  from  "./components/Button" ; 
21import  Todo  from  "./components/Todo" ; 
3- export  {  Button  } ; 
42export  {  Todo  } ; 
Original file line number Diff line number Diff line change 11{
22  "name" : " react-todo-component" 
3-   "version" : " 0.1.2 " 
3+   "version" : " 0.1.3 " 
44  "description" : " An React todo component created using matirail ui" 
55  "main" : " lib/index.js" 
66  "module" : " lib/index.esm.js" 
1010    "storybook" : " start-storybook -p 6006" 
1111    "build-storybook" : " build-storybook -c .storybook -o .out" 
1212    "build" : " rollup -c" 
13-     "prepublishOnly" : " yarn build" 
13+     "prepublishOnly" : " yarn build" 
14+     "publish" : " yarn publish" 
1415  },
1516  "files" : [
1617    " src" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments