diff --git a/packages/artplayer/types/player.d.ts b/packages/artplayer/types/player.d.ts index f31e4e857..6f74718ca 100644 --- a/packages/artplayer/types/player.d.ts +++ b/packages/artplayer/types/player.d.ts @@ -1,6 +1,6 @@ import { CssVar } from './cssVar'; -export type AspectRatio = 'default' | '4:3' | '16:9' | (string & Record); +export type AspectRatio = 'default' | '4:3' | '16:9' | (`${number}:${number}` & Record); export type PlaybackRate = 0.5 | 0.75 | 1.0 | 1.25 | 1.5 | 1.75 | 2.0 | (number & Record); export type Flip = 'normal' | 'horizontal' | 'vertical' | (string & Record); export type State = 'standard' | 'mini' | 'pip' | 'fullscreen' | 'fullscreenWeb';