Replies: 1 comment 1 reply
-
|
제공하지 않는 특별한 이유가 있진 않습니다. 타입, 함수 등을 export하게되면 이름을 변경하더라도 Breaking Change로 취급되니 꼭 필요한 경우가 아니라면 export하는 것을 선호하지는 않아요. 토스 내에서는 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
openAsync( ( { close, unmount }) => <Comp close={close} unmount={unmount} /> ));
위 와 같은 형태로 모달을 사용하고 있는데, Comp 컴포넌트에서 props에 대한 type의 정의할 때 close와 unmount를 정의하고자 라이브러리의 타입을 살펴봤습니다.
라이브러리에서 OverlayAsyncControllerProps는 export가 되어 있지 않고 OverlayAsyncControllerComponent만 되어 있기에, ComponentProps<OverlayAsyncControllerComponent>로 사용하고 있는데,
OverlayAsyncControllerProps가 따로 export 되지 않은 이유가 있을까요?
코딩하다가 궁금해져서 문의드립니다. 유사 개발자라 다소 엉뚱한 질문이라도 어여삐 여겨주세요.
Beta Was this translation helpful? Give feedback.
All reactions