fix: Wrap props typing

This commit is contained in:
2024-04-20 12:33:45 +02:00
parent f40499e781
commit 9579dbec67

View File

@@ -2,8 +2,8 @@ import { createElement, ReactNode } from "react";
type Props = { type Props = {
if?: boolean; if?: boolean;
with: (typeof createElement.arguments)[0]; with: Parameters<typeof createElement>[0];
wrapperProps: (typeof createElement.arguments)[1]; wrapperProps: Parameters<typeof createElement>[1];
children: NonNullable<ReactNode>; children: NonNullable<ReactNode>;
}; };