Skip to content

Commit

Permalink
⚡️ authコンポーネントの型定義 #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Fukuemon committed Jun 9, 2023
1 parent 4f4a8f2 commit 8c227c9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions store/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export interface File extends Blob{
readonly lastModified: number;
readonly name: string;
}

/*authSlice.tsx*/
export interface PROPS_AUTHEN {
email: string;
password: string;
}

export interface PROPS_PROFILE {
id: number;
nickName: string;
img: File | null;
}

export interface PROPS_NICKNAME {
nickName: string;
}

1 comment on commit 8c227c9

@Fukuemon
Copy link
Owner Author

@Fukuemon Fukuemon commented on 8c227c9 Jun 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type.tsファイルでAuthSliceの中で使う型を定義する #1

型定義ファイルを作っておき、他のファイルでimportすることで、事前に型定義をすることができ、見返す時も見やすい

Please sign in to comment.