From 7e2ffbcfa22293a37b92566240adf780d79c247a Mon Sep 17 00:00:00 2001 From: JeongBin0227 <45503248+JeongBin0227@users.noreply.github.com> Date: Wed, 6 Jan 2021 23:40:24 +0900 Subject: [PATCH] =?UTF-8?q?[#1]=20feat=20:=20=EB=8D=B0=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20interface=20=EB=AA=85=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/type.d.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/type.d.tsx diff --git a/src/type.d.tsx b/src/type.d.tsx new file mode 100644 index 0000000..f196661 --- /dev/null +++ b/src/type.d.tsx @@ -0,0 +1,15 @@ +interface User { + id: number + name: string + } + + type UserState = { + users: User[] + } + + type UserAction = { + type: string + user: User + } + + type DispatchType = (args: UserAction) => UserAction \ No newline at end of file