From eb7bd68b4340088003256bbfbb61fbd265f2db75 Mon Sep 17 00:00:00 2001 From: Harvey Date: Wed, 15 Dec 2021 10:16:52 +0800 Subject: [PATCH] update ts --- docs/assets/ts/artplayer.d.ts | 4 ++-- packages/artplayer/types/artplayer.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;