강의

멘토링

로드맵

Inflearn Community Q&A

noh55242574's profile image
noh55242574

asked

TypeScript with Vue Practical Project

Implementing Vuex Module Interface to Separate Store

moduleA.store.ts내에서 RootState가 하는일은 무엇인가요?

Written on

·

177

0

moduleA.store.ts내에서 RootState가 하는일은 무엇인가요?

store.ts에서 export한 RootState가 moduleA에서는 굳이 하는일이 없어 보이는데, Module<moduleA, RootState>에 RootState를 적지 않으면 에러가 발생하더군요.

어짜피 moduleA의 store state는 interface moduleA {...} 에서 정의하는 것같은데 굳이 RootState가 왜 필요한지 궁금합니다

vuejs

Answer

This question is waiting for answers
Be the first to answer!
noh55242574's profile image
noh55242574

asked

Ask a question