Skip to content

Commit

Permalink
[#1] feat : 데이터 interface 명시
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongBin0227 committed Jan 6, 2021
1 parent 5f7bea8 commit 7e2ffbc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/type.d.tsx
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7e2ffbc

Please sign in to comment.