일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Frontend
- 타입스크립트
- 리액트
- 알고리즘
- 프론트엔드
- 비트 연산자
- 자바스크립트
- Redux
- 파이어베이스
- 프리온보딩
- 컴포넌트
- localstorage
- Component
- JavaScript
- state
- react
- v9
- 원티드
- react localStorage
- firebase
- axios
- es6
- 프로그래머스
- JS
- TypeScript
- Reducer
- 브라우저
- til
- CORS
- array
Archives
- Today
- Total
목록dispatch type (1)
도리쓰에러쓰
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/n1hPS/btrLqelJtfc/45EKdStTTwwseTGGug2jR1/img.png)
import { configureStore } from '@reduxjs/toolkit' import menuSlice from './menu-slice' const store = configureStore({ reducer: { menu: menuSlice.reducer }, }) redux 파일에 아래와 같이 코드가 작성되어 있을 때 store와 dispatch 타입 지정 방법은 아래와 같다. 1. store type export type storeType = ReturnType 2. dispatch type export type dispatchType = typeof store.dispatch
TypeScript/TypeScript
2022. 9. 5. 18:43