Skip to content

Commit eca9358

Browse files
committed
fix(types): change component and render types to never in TransRenderCallbackOrComponent
1 parent 876ab3c commit eca9358

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react/src/TransNoContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ export type TransRenderProps = {
1313

1414
export type TransRenderCallbackOrComponent =
1515
| {
16-
component?: undefined
16+
component?: never
1717
render?:
1818
| ((props: TransRenderProps) => React.ReactElement<any, any>)
1919
| null
2020
}
2121
| {
2222
component?: React.ComponentType<TransRenderProps> | null
23-
render?: undefined
23+
render?: never
2424
}
2525

2626
export type TransProps = {

0 commit comments

Comments
 (0)