File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,25 +47,32 @@ export async function getBodyInfoTermsAction(): Promise<{
4747/**
4848 * [GET] 내 체형 정보 조회
4949 */
50- export async function getMyBodyInfoAction ( ) : Promise < {
51- success : boolean ;
52- data ?: BodyInfoSchemaType & { hasBodyInfo : boolean } ;
53- message ?: string ;
54- } > {
50+ export async function getMyBodyInfoAction ( ) : Promise <
51+ | {
52+ success : true ;
53+ data : BodyInfoSchemaType & { hasBodyInfo : true } ;
54+ message ?: string ;
55+ }
56+ | {
57+ success : true ;
58+ data ?: undefined ;
59+ hasBodyInfo : false ;
60+ message ?: string ;
61+ }
62+ | {
63+ success : false ;
64+ data ?: undefined ;
65+ message : string ;
66+ }
67+ > {
5568 try {
5669 const response = await api . get < MyBodyInfoResponse > ( '/users/me/body-info' ) ;
5770
5871 if ( ! response || ! response . hasBodyInfo ) {
5972 return {
6073 success : true ,
61- data : {
62- hasBodyInfo : false ,
63- height : 0 ,
64- weight : 0 ,
65- usualTopSize : '' ,
66- usualBottomSize : '' ,
67- usualShoeSize : '' ,
68- } ,
74+ data : undefined ,
75+ hasBodyInfo : false ,
6976 } ;
7077 }
7178
You can’t perform that action at this time.
0 commit comments