fix(apps.web): fix module not found ow

Signed-off-by: Hanif Dwy Putra S <hanifdwyputrasembiring@gmail.com>
This commit is contained in:
Hanif Dwy Putra S
2025-08-30 08:22:20 +08:00
parent 5d292838f3
commit 9f0e425846
3 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,3 @@
import { Shape } from "ow";
import { BaseProvider, Providers } from "tiktok-dl-core";
const transformProvider = (provider: BaseProvider) => {
@@ -8,9 +7,9 @@ const transformProvider = (provider: BaseProvider) => {
name: provider.resourceName(),
url: provider.client?.defaults.options.prefixUrl,
maintenance: provider.maintenance,
params: params ? Object.keys(params).map(key => ({
name: key,
type: (params?.[key] as Shape | undefined)?.type,
params: params ? Object.keys(params._zod.def.shape).map(k => ({
name: k,
type: params._zod.def.shape[k].def.type,
})) : {},
}
}

View File

@@ -39,7 +39,7 @@ const VideoPlayer = ({
});
}
}
}, [videoData.video?.urls[0], isActive]);
}, [currentTime, isActive, isPlaying, onPlayStateChange]);
useEffect(() => {
const video = videoRef.current;
@@ -64,7 +64,7 @@ const VideoPlayer = ({
}
}
}
}, [isPlaying, isActive, currentTime]);
}, [isPlaying, isActive, currentTime, onPlayStateChange]);
const handleTimeUpdate = () => {
if (videoRef.current && isActive) {

View File

@@ -13,6 +13,7 @@
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"allowImportingTsExtensions": true,
"plugins": [
{
"name": "next"