{"version":3,"file":"errors-CBjJRIIb.js","sources":["../../src/types/errors.ts"],"sourcesContent":["export interface ErrorResponse {\n status: number\n data: {\n detail: {\n error_message: string\n error_code: string\n }\n }\n}\n\nexport const isErrorResponse = (response: any): response is ErrorResponse => {\n return (\n response.status &&\n response.data &&\n response.data.detail &&\n response.data.detail.error_message &&\n response.data.detail.error_code\n )\n}\n"],"names":["isErrorResponse","response"],"mappings":"sWAUa,MAAAA,EAAmBC,GAE5BA,EAAS,QACTA,EAAS,MACTA,EAAS,KAAK,QACdA,EAAS,KAAK,OAAO,eACrBA,EAAS,KAAK,OAAO"}