From 55587c32c7a0ea3128f72583595565cdcfd8adfd Mon Sep 17 00:00:00 2001 From: Harvey Date: Mon, 10 Oct 2022 10:19:38 +0800 Subject: [PATCH] Update option.d.ts --- packages/artplayer/types/option.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/artplayer/types/option.d.ts b/packages/artplayer/types/option.d.ts index 2224b80ce..01fcd3685 100644 --- a/packages/artplayer/types/option.d.ts +++ b/packages/artplayer/types/option.d.ts @@ -286,7 +286,9 @@ export type Option = { /** * Other video attribute */ - moreVideoAttr?: Partial; + moreVideoAttr?: Partial<{ + [key in keyof HTMLVideoElement as HTMLVideoElement[key] extends Function ? never : key]: HTMLVideoElement[key]; + }>; /** * Custom default icons