Skip to content

Commit

Permalink
fix(async-boundary): add generic constraint of withAsyncBoundary (tos…
Browse files Browse the repository at this point in the history
…s#82)

Co-authored-by: Sojin Park <[email protected]>
  • Loading branch information
manudeli and raon0211 authored Oct 24, 2022
1 parent 0de25e5 commit 6cf223f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/async-boundary/src/withAsyncBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import AsyncBoundary from './AsyncBoundary';
* @see https://jbee.io/react/error-declarative-handling-1/ 선언적으로 로딩과 에러 상태 처리하기
* @see https://toss.im/slash-21/sessions/3-1 Suspense와 에러 처리 관련된 Slash 21 발표
*/
export default function withAsyncBoundary<Props = {}>(
export default function withAsyncBoundary<Props extends Record<string, unknown> = Record<string, never>>(
WrappedComponent: ComponentType<Props>,
asyncBoundaryProps: ComponentProps<typeof AsyncBoundary>
) {
Expand Down

0 comments on commit 6cf223f

Please sign in to comment.