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