profile
Software engineer at Sendbird
태그 목록
전체보기 (36)react native(8)git(4)typescript(4)React(3)Picker(2)axios(2)Time Picker(2)eslint rules by files(1)wireless debug(1)조건부함수(1)private(1)expo module(1)non-blocking i/o(1)task queue(1)wireless debugging(1)iOS background debug(1)setImmediate(1)fabric(1)회고(1)iOS audio(1)expo 3rd party library(1)promise(1)worker pool(1)API(1)background play(1)Event Queue(1)push(1)private package(1)merge(1)Flatlist(1)queue(1)typescript conditional function(1)2021(1)타입스크립트 조건부 함수(1)Interceptor(1)Request(1)Response(1)connect()(1)get type(1)types(1)jsi(1)javascript interface(1)중첩된 쿼리(1)blocking i/o(1)axios type(1)이직(1)adb wireless(1)process.nextTick()(1)micro task(1)event loop(1)wifi debugging(1)nextTick(1)Worker Thread(1)silent notification(1)node.js(1)flipper(1)타입스크립트(1)react-native-codegen(1)macrotask(1)npm private(1)query(1)xcode wireless(1)macro task(1)react-native fabric(1)conditional-typing(1)libuv(1)gpg(1)turbomodule(1)반공변성(1)eslint ignore js(1)공변성(1)오브젝트 쿼리(1)react-native turbomodule(1)이변성(1)commit(1)squash merge(1)Wheel Picker(1)submodule(1)voip notification(1)setInterval(1)setTimeout(1)expo install without eject(1)ListEmptyComponent(1)background(1)eslint split rules(1)VoIP(1)github packages(1)playlist(1)query-params(1)microtask(1)type(1)eslint-typescript ignore js(1)v8(1)params(1)real-device(1)monorepo(1)중첩된 오브젝트 쿼리(1)Query String(1)wifi debug(1)reactnative(1)app(1)expo npm module(1)queueMicrotask(1)nested object query(1)squash(1)expo npm library(1)signing(1)axios params(1)post type(1)eslint various rules(1)gpg sign(1)autoSetupRemote(1)background process(1)remote(1)interceptor type(1)

Axios 인터셉터 타입스크립트에서 제대로 쓰기

Axios 에는 interceptors 라는 기능이 있다. 이를 통해서 request/response 에 선행, 후행 처리를 커스텀하게 할 수 있다. 하지만 interceptor 를 통해서 변경된 값이 타입에 적용되지는 않는데, 이를 멋지게 해결해보자.

2021년 7월 29일
·
0개의 댓글
·