Skip to content

Commit 437f1fc

Browse files
committed
Fix type.
1 parent 2eba445 commit 437f1fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/react-live/src/utils/transpile

packages/react-live/src/utils/transpile/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const generateElement = (
5050

5151
export const renderElementAsync = (
5252
{ code = "", scope = {}, enableTypeScript = true }: GenerateOptions,
53-
resultCallback: (...args: unknown[]) => React.ReactNode,
53+
resultCallback: (sender: ComponentType) => void,
5454
errorCallback: (error: Error) => void
5555
// eslint-disable-next-line consistent-return
5656
) => {

0 commit comments

Comments
 (0)