fix(dash): [PKG-DASH-05] align nullable SDK metadata and validate real types

This commit is contained in:
Harvey Zhao committed 2026-09-12 06:07:03 +08:00
1 parent c4b5f5f454
commit 2ad00730ee
25 files changed
+1255 -25

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ const dashOption: artplayerPluginDashControl.Option = {
const oldQuality: NonNullable<Parameters<typeof artplayerPluginDashControl>[0]['quality']> = { getName: (value: object) => String(value) }
const typedFactory: (art: Artplayer) => artplayerPluginDashControl.Result = artplayerPluginDashControl(dashOption)
const defaultFactory = artplayerPluginDashControl()
const unknownTrack: artplayerPluginDashControl.AudioTrack = { id: null, index: null, lang: null }
`, 'typescript', api.Uri.parse('file:///dash-consumer.ts'))
const invalid = api.editor.createModel('artplayerPluginDashControl({ quality: { getName: level => level.height } })', 'typescript', api.Uri.parse('file:///dash-invalid.ts'))
try {