mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 02:51:20 -08:00
update d.ts
This commit is contained in:
1 parent
0a6ef6214e
commit
c043498280
2 files changed
+6
-6
No files matched your search
Vendored
+3
-3
@@ -57,7 +57,7 @@ type ComponentOption = {
|
|||||||
/**
|
/**
|
||||||
* Component position, use in controls
|
* Component position, use in controls
|
||||||
*/
|
*/
|
||||||
position?: 'top' | 'left' | 'right';
|
position?: 'top' | 'left' | 'right' | (string & Record<never, never>);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom selector list, use in controls
|
* Custom selector list, use in controls
|
||||||
@@ -186,7 +186,7 @@ type SubtitleOption = {
|
|||||||
/**
|
/**
|
||||||
* The subtitle type
|
* The subtitle type
|
||||||
*/
|
*/
|
||||||
type?: 'vtt' | 'srt' | 'ass';
|
type?: 'vtt' | 'srt' | 'ass' | (string & Record<never, never>);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The subtitle style object
|
* The subtitle style object
|
||||||
@@ -238,7 +238,7 @@ type Option = {
|
|||||||
/**
|
/**
|
||||||
* Player language
|
* Player language
|
||||||
*/
|
*/
|
||||||
lang?: 'en' | 'zh-cn' | 'zh-tw' | 'cs' | 'pl';
|
lang?: 'en' | 'zh-cn' | 'zh-tw' | 'cs' | 'pl' | 'es' | (string & Record<never, never>);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Player default volume
|
* Player default volume
|
||||||
|
|||||||
+3
-3
@@ -57,7 +57,7 @@ type ComponentOption = {
|
|||||||
/**
|
/**
|
||||||
* Component position, use in controls
|
* Component position, use in controls
|
||||||
*/
|
*/
|
||||||
position?: 'top' | 'left' | 'right';
|
position?: 'top' | 'left' | 'right' | (string & Record<never, never>);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom selector list, use in controls
|
* Custom selector list, use in controls
|
||||||
@@ -186,7 +186,7 @@ type SubtitleOption = {
|
|||||||
/**
|
/**
|
||||||
* The subtitle type
|
* The subtitle type
|
||||||
*/
|
*/
|
||||||
type?: 'vtt' | 'srt' | 'ass';
|
type?: 'vtt' | 'srt' | 'ass' | (string & Record<never, never>);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The subtitle style object
|
* The subtitle style object
|
||||||
@@ -238,7 +238,7 @@ type Option = {
|
|||||||
/**
|
/**
|
||||||
* Player language
|
* Player language
|
||||||
*/
|
*/
|
||||||
lang?: 'en' | 'zh-cn' | 'zh-tw' | 'cs' | 'pl';
|
lang?: 'en' | 'zh-cn' | 'zh-tw' | 'cs' | 'pl' | 'es' | (string & Record<never, never>);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Player default volume
|
* Player default volume
|
||||||
|
|||||||
Reference in new issue
Block a user