Skip to content

Commit

Permalink
chore: change type name
Browse files Browse the repository at this point in the history
memeber -> userInfo

#19
  • Loading branch information
timepresent95 committed Aug 20, 2024
1 parent aaa92b7 commit 7357758
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/api/quetion.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {kyInstance} from './ky';
import {questionApis} from './routes';

import {AlertToken} from '@/types';
import {Answer, Question} from '@/types/question';
import {AlertToken, Answer, Question} from '@/types';
import {createUrl} from '@/utils/url';

type ParamGetQuestion = {
Expand Down
3 changes: 2 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './member';
export * from './user';
export * from './auth';
export * from './question';
10 changes: 5 additions & 5 deletions src/types/member.ts → src/types/user.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import {OAuthAgent} from './auth';

import {birthType, roles} from '@/constants';

export type GoupRole = (typeof roles)[number];
export type BirthType = (typeof birthType)[number];

export type Member = {
export type UserInfo = {
nickName: string;
groupRole: GoupRole;
birth: string;
birthType: BirthType;
email: string;
signUpDate: Date;
isHost: boolean; // 그룹장 여부
OAuthProvider: OAuthAgent;
createAt: Date;
};

0 comments on commit 7357758

Please sign in to comment.