Skip to content

Commit f4f2261

Browse files
committed
Get rid of ts-expect-error
1 parent 47e177f commit f4f2261

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/utils.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ export function renderComponent<T>(
44
) {
55
if (!ComponentOrNode) return null
66
if (typeof ComponentOrNode !== "function") return ComponentOrNode
7-
// @ts-expect-error TS2322: Type '{}' is not assignable to type 'T'
8-
return <ComponentOrNode {...props} />
7+
return <ComponentOrNode {...props!} />
98
}

0 commit comments

Comments
 (0)