Skip to content

Commit 5450a4a

Browse files
committed
yarn publish added
1 parent 918ca7f commit 5450a4a

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

components/Todo/Todo.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ export interface TodoItem {
55
uuid: string;
66
}
77
export interface AddProps {
8-
addItem: (item: TodoItem) => void;
8+
addItem: (item: TodoItem | TodoItem[]) => void;
99
}
1010
export interface TodoCompletedItemsProp {
1111
items: TodoItem[];
1212
setItemsCallback: (updatedItems: TodoItem[]) => void;
1313
itemIndex: number;
1414
}
1515
export interface TodoAppProps {
16-
defaultItems: TodoItem[];
16+
defaultItems?: TodoItem[];
1717
onChange: (items: TodoItem[]) => void;
1818
}
1919
declare const _default: (props: TodoAppProps) => JSX.Element;

index.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
import Button from "./components/Button";
21
import Todo from "./components/Todo";
3-
export { Button };
42
export { Todo };

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -10,7 +10,8 @@
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",

0 commit comments

Comments
 (0)