diff --git a/docs/assets/ts/artplayer.d.ts b/docs/assets/ts/artplayer.d.ts index 37fa305bf..91964db59 100644 --- a/docs/assets/ts/artplayer.d.ts +++ b/docs/assets/ts/artplayer.d.ts @@ -484,8 +484,8 @@ declare class Player { pause(): any; play(): any; toggle(): any; - switchUrl(): Promise; - switchQuality(): Promise; + switchUrl(url: string): Promise; + switchQuality(url: string): Promise; getDataURL(): Promise; getBlobUrl(): Promise; screenshot(): Promise; diff --git a/packages/artplayer/types/artplayer.d.ts b/packages/artplayer/types/artplayer.d.ts index 37fa305bf..91964db59 100644 --- a/packages/artplayer/types/artplayer.d.ts +++ b/packages/artplayer/types/artplayer.d.ts @@ -484,8 +484,8 @@ declare class Player { pause(): any; play(): any; toggle(): any; - switchUrl(): Promise; - switchQuality(): Promise; + switchUrl(url: string): Promise; + switchQuality(url: string): Promise; getDataURL(): Promise; getBlobUrl(): Promise; screenshot(): Promise;