From 1f3921d63efcd9f23c669a2005a63b5a809fd24d Mon Sep 17 00:00:00 2001 From: otakustay Date: Tue, 14 Mar 2023 16:56:38 +0800 Subject: [PATCH] fix: type of withTokenizeWorker (#193) --- src/hocs/withTokenizeWorker.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hocs/withTokenizeWorker.tsx b/src/hocs/withTokenizeWorker.tsx index 3c31fde..b8c5191 100644 --- a/src/hocs/withTokenizeWorker.tsx +++ b/src/hocs/withTokenizeWorker.tsx @@ -29,8 +29,8 @@ export default function withTokenizeWorkerwithTokenizeWorker(ComponentIn: ComponentType

) { - function ComponentOut(props: P & TokenizeResult) { + return function wrap

(ComponentIn: ComponentType

) { + function ComponentOut(props: P & RequiredProps) { const payload = resolveMessagePayload(props); const tokenizationResult = useTokenizeWorker(worker, payload, hookOptions);