Skip to content

Commit

Permalink
fix: type of withTokenizeWorker (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
otakustay committed Mar 14, 2023
1 parent 30c12bc commit 1f3921d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hocs/withTokenizeWorker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export default function withTokenizeWorkerwithTokenizeWorker<T extends TokenizeP
return mapPayload(input, props);
}

return function wrap<P extends RequiredProps>(ComponentIn: ComponentType<P>) {
function ComponentOut(props: P & TokenizeResult) {
return function wrap<P>(ComponentIn: ComponentType<P & TokenizeResult>) {
function ComponentOut(props: P & RequiredProps) {
const payload = resolveMessagePayload(props);
const tokenizationResult = useTokenizeWorker(worker, payload, hookOptions);

Expand Down

0 comments on commit 1f3921d

Please sign in to comment.